mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
c37b65ee10
parameters (like \UNIX) are commonly entered using an empty group to separate the markup from a following inter-word space; this is not needed when the next character is punctuation, or the markup is the last thing in the enclosing group. These cases were marked inconsistently; the empty group is now *only* used when needed.
37 lines
1.2 KiB
TeX
37 lines
1.2 KiB
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.TCAFLUSH}, 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.TCAFLUSH}, and is passed
|
|
to \function{termios.tcsetattr()}.
|
|
\end{funcdesc}
|
|
|
|
|
|
\begin{seealso}
|
|
\seemodule{termios}{Low-level terminal control interface.}
|
|
\seemodule[TERMIOSuppercase]{TERMIOS}{Constants useful for terminal
|
|
control operations.}
|
|
\end{seealso}
|