[Python-ideas] Remove tty module
M.-A. Lemburg
mal at egenix.com
Wed Jul 24 11:01:42 CEST 2013
On 24.07.2013 10:43, anatoly techtonik wrote:
> http://hg.python.org/cpython/file/74fd1959cf44/Lib/tty.py
>
> tty module is cryptic. The low level interface it is exposed can be
> covered by appropriate recipes in termios module documentation. You
> can't understand tty without understanding termios. You also can't
> understand tty without being a Unix guru -
> http://en.wikipedia.org/wiki/TTY I doubt that raw mode function (which
> is 50% of this stuff) is really used by anyone.
>
> In ideal world the tty should be substituted with interface with less
> cryptic terminology replacing cbreak mode, cooked mode, raw mode with
> user oriented concepts. Otherwise this functionality is already
> covered by termios interface.
Better references:
http://en.wikipedia.org/wiki/POSIX_terminal_interface
http://en.wikipedia.org/wiki/Cooked_mode
cbreak and raw modes are needed for e.g. games or editors that
need low-level access to the keyboard.
For a user oriented TTY interface, have a look at
http://en.wikipedia.org/wiki/Ncurses and
http://docs.python.org/2.7/library/curses.html
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Jul 24 2013)
>>> Python Projects, Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
More information about the Python-ideas
mailing list