GNU Info

Info Node: (python2.1-lib.info)tty

(python2.1-lib.info)tty


Next: pty Prev: TERMIOS Up: Unix Specific Services
Enter node , (file) or (file)node

Terminal control functions
==========================

This module was written by Steen Lumholt <>.
This manual section was written by Moshe Zadka
<moshez@zadka.site.co.il>.
Utility functions that perform common terminal control operations.

The `tty' module defines functions for putting the tty into cbreak and
raw modes.

Because it requires the `termios' module, it will work only on UNIX.

The `tty' module defines the following functions:

`setraw(fd[, when])'
     Change the mode of the file descriptor FD to raw. If WHEN is
     omitted, it defaults to `TERMIOS.TCAFLUSH', and is passed to
     `termios.tcsetattr()'.

`setcbreak(fd[, when])'
     Change the mode of file descriptor FD to cbreak. If WHEN is
     omitted, it defaults to `TERMIOS.TCAFLUSH', and is passed to
     `termios.tcsetattr()'.

See also:
     Note: termios Low-level terminal control interface.  Note:
     TERMIOS Constants useful for terminal control operations.


automatically generated by info2www version 1.2.2.9