This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [PATCH] tty needs a way to restore the terminal mode.
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: facundobatista, loewis, mwm
Priority: normal Keywords:

Created on 2004-12-19 21:24 by mwm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg23778 - (view) Author: Mike Meyer (mwm) Date: 2004-12-19 21:24
tty provides a nice, simple interface for setting the terminal to raw
or cbreak modes. However, it doesn't provide a way to put the terminal
back in the mode it was in before that change. Every responsible
application should leave the terminal in the mode it found it in -
unless the application is called sttty, of course. tty needs a
"setsane" function.

msg23779 - (view) Author: Mike Meyer (mwm) Date: 2004-12-19 21:28
Logged In: YES 
user_id=93910

The patch to add the setsane method is in patch #1088078.
msg23780 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-03-04 00:02
Logged In: YES 
user_id=21627

As the proposed patch shows, the requested feature is
already there: the application merely needs to invoke the
tcgetattr function at the beginning, and tcsetattr at the end.
msg62813 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2008-02-23 21:42
As Martin says, the functionality is present. If still you think we have
a new method here, please raise a discussion in python-dev regarding this.

Thank you!
History
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41345
2008-02-23 21:42:27facundobatistasetstatus: open -> closed
nosy: + facundobatista
resolution: out of date
messages: + msg62813
2004-12-19 21:24:27mwmcreate