tty

tty — Terminal control functions

Source code: Lib/tty.py

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:

tty.setraw(fd, when=termios