Staging
v0.5.1
https://github.com/python/cpython
Revision 2bebadfe517c8c3c5a24f246eb44b5fa9dfc2cf3 authored by Mark Dickinson on 21 January 2008, 21:54:47 UTC, committed by Mark Dickinson on 21 January 2008, 21:54:47 UTC
1 parent 78d50cc
Raw File
Tip revision: 2bebadfe517c8c3c5a24f246eb44b5fa9dfc2cf3 authored by Mark Dickinson on 21 January 2008, 21:54:47 UTC
Issue 1678380: fix a bug identifying -0.0 and 0.0
Tip revision: 2bebadf
libtty.tex
\section{\module{tty} ---
         Terminal control functions}

\declaremodule{standard}{tty}
  \platform{Unix}
\moduleauthor{Steen Lumholt}{}
\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}
\modulesynopsis{Utility functions that perform common terminal control
                operations.}

The \module{tty} module defines functions for putting the tty into
cbreak and raw modes.

Because it requires the \refmodule{termios} module, it will work
only on \UNIX.

The \module{tty} module defines the following functions:

\begin{funcdesc}{setraw}{fd\optional{, when}}
Change the mode of the file descriptor \var{fd} to raw. If \var{when}
is omitted, it defaults to \constant{termios.TCSAFLUSH}, and is passed
to \function{termios.tcsetattr()}.
\end{funcdesc}

\begin{funcdesc}{setcbreak}{fd\optional{, when}}
Change the mode of file descriptor \var{fd} to cbreak. If \var{when}
is omitted, it defaults to \constant{termios.TCSAFLUSH}, and is passed
to \function{termios.tcsetattr()}.
\end{funcdesc}


\begin{seealso}
  \seemodule{termios}{Low-level terminal control interface.}
\end{seealso}
back to top