summaryrefslogtreecommitdiff
path: root/sys/src/cmd/python/Doc/lib/libtty.tex
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-03 11:25:13 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-03 11:25:13 +0000
commit458120dd40db6b4df55a4e96b650e16798ef06a0 (patch)
tree8f82685be24fef97e715c6f5ca4c68d34d5074ee /sys/src/cmd/python/Doc/lib/libtty.tex
parent3a742c699f6806c1145aea5149bf15de15a0afd7 (diff)
add hg and python
Diffstat (limited to 'sys/src/cmd/python/Doc/lib/libtty.tex')
-rw-r--r--sys/src/cmd/python/Doc/lib/libtty.tex34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/src/cmd/python/Doc/lib/libtty.tex b/sys/src/cmd/python/Doc/lib/libtty.tex
new file mode 100644
index 000000000..d42771aac
--- /dev/null
+++ b/sys/src/cmd/python/Doc/lib/libtty.tex
@@ -0,0 +1,34 @@
+\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}