summaryrefslogtreecommitdiffstats
path: root/Doc/library/termios.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/termios.rst')
-rw-r--r--Doc/library/termios.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/termios.rst b/Doc/library/termios.rst
index 54fb065..df29496 100644
--- a/Doc/library/termios.rst
+++ b/Doc/library/termios.rst
@@ -1,4 +1,3 @@
-
:mod:`termios` --- POSIX style tty control
==========================================
@@ -80,11 +79,11 @@ The module defines the following functions:
Convenience functions for common terminal control operations.
+.. _termios-example:
+
Example
-------
-.. _termios-example:
-
Here's a function that prompts for a password with echoing turned off. Note the
technique using a separate :func:`tcgetattr` call and a :keyword:`try` ...
:keyword:`finally` statement to ensure that the old tty attributes are restored