2 :mod:`tty` --- Terminal control functions
3 =========================================
7 :synopsis: Utility functions that perform common terminal control operations.
8 .. moduleauthor:: Steen Lumholt
9 .. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
12 The :mod:`tty` module defines functions for putting the tty into cbreak and raw
15 Because it requires the :mod:`termios` module, it will work only on Unix.
17 The :mod:`tty` module defines the following functions:
20 .. function:: setraw(fd[, when])
22 Change the mode of the file descriptor *fd* to raw. If *when* is omitted, it
23 defaults to :const:`termios.TCSAFLUSH`, and is passed to
24 :func:`termios.tcsetattr`.
27 .. function:: setcbreak(fd[, when])
29 Change the mode of file descriptor *fd* to cbreak. If *when* is omitted, it
30 defaults to :const:`termios.TCSAFLUSH`, and is passed to
31 :func:`termios.tcsetattr`.
37 Low-level terminal control interface.