blob: c4f54b04ecd1cf2de0eeaf402a6a76f9cf62ee1b [file] [log] [blame]
Fred Drake66239d51999-06-23 14:30:19 +00001\section{\module{tty} ---
2 Terminal control functions}
3
4\declaremodule{standard}{tty}
5 \platform{Unix}
6\moduleauthor{Steen Lumholt}{}
Fred Drake57657bc2000-12-01 15:25:23 +00007\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}
Fred Drake66239d51999-06-23 14:30:19 +00008\modulesynopsis{Utility functions that perform common terminal control
9 operations.}
10
11The \module{tty} module defines functions for putting the tty into
12cbreak and raw modes.
13
14Because it requires the \refmodule{termios} module, it will work
Fred Drakec37b65e2001-11-28 07:26:15 +000015only on \UNIX.
Fred Drake66239d51999-06-23 14:30:19 +000016
17The \module{tty} module defines the following functions:
18
19\begin{funcdesc}{setraw}{fd\optional{, when}}
20Change the mode of the file descriptor \var{fd} to raw. If \var{when}
21is omitted, it defaults to \constant{TERMIOS.TCAFLUSH}, and is passed
22to \function{termios.tcsetattr()}.
23\end{funcdesc}
24
25\begin{funcdesc}{setcbreak}{fd\optional{, when}}
26Change the mode of file descriptor \var{fd} to cbreak. If \var{when}
27is omitted, it defaults to \constant{TERMIOS.TCAFLUSH}, and is passed
28to \function{termios.tcsetattr()}.
29\end{funcdesc}
30
31
32\begin{seealso}
33 \seemodule{termios}{Low-level terminal control interface.}
34 \seemodule[TERMIOSuppercase]{TERMIOS}{Constants useful for terminal
35 control operations.}
36\end{seealso}