[ python-Bugs-1088077 ] [PATCH] tty needs a way to restore the
terminal mode.
SourceForge.net
noreply at sourceforge.net
Fri Mar 4 01:02:02 CET 2005
Bugs item #1088077, was opened at 2004-12-19 22:24
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1088077&group_id=5470
Category: Python Library
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Meyer (mwm)
Assigned to: Nobody/Anonymous (nobody)
Summary: [PATCH] tty needs a way to restore the terminal mode.
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2005-03-04 01:02
Message:
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.
----------------------------------------------------------------------
Comment By: Mike Meyer (mwm)
Date: 2004-12-19 22:28
Message:
Logged In: YES
user_id=93910
The patch to add the setsane method is in patch #1088078.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1088077&group_id=5470
More information about the Python-bugs-list
mailing list