diff options
Diffstat (limited to 'Doc/lib/libtermios.tex')
-rw-r--r-- | Doc/lib/libtermios.tex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libtermios.tex b/Doc/lib/libtermios.tex index 3d007c3..2d233f2 100644 --- a/Doc/lib/libtermios.tex +++ b/Doc/lib/libtermios.tex @@ -1,4 +1,5 @@ \section{Built-in Module \sectcode{termios}} +\label{module-termios} \bimodindex{termios} \indexii{Posix}{I/O control} \indexii{tty}{I/O control} @@ -76,7 +77,7 @@ Note the technique using a separate \code{termios.tcgetattr()} call and a \code{try \ldots{} finally} statement to ensure that the old tty attributes are restored exactly no matter what happens: -\begin{verbatim} +\bcode\begin{verbatim} def getpass(prompt = "Password: "): import termios, TERMIOS, sys fd = sys.stdin.fileno() @@ -89,9 +90,8 @@ def getpass(prompt = "Password: "): finally: termios.tcsetattr(fd, TERMIOS.TCSADRAIN, old) return passwd -\end{verbatim} - - +\end{verbatim}\ecode +% \section{Standard Module \sectcode{TERMIOS}} \stmodindex{TERMIOS} \indexii{Posix}{I/O control} |