PyDocs

Unix-specific services

termios

Unix

This module provides an interface to the Posix calls for tty I/O control.
For a complete description of these calls, see the Posix or Unix manual
pages. It is only available for those Unix versions that support Posix
termios style tty I/O control.

All functions in this module take a file descriptor fd as their first
argument. This can be an integer file descriptor, such as returned by
sys.stdin.fileno(), or a file object, such as sys.stdin itself.
Symbols in termios

t

tcdrain
Wait until all output written to file descriptor fd has been transmitted.
tcflow
Suspend or resume input or output on file descriptor fd.
tcflush
Discard queued data on file descriptor fd.
tcgetattr
Get the tty attributes for file descriptor fd.
tcgetwinsize
Get the tty winsize for file descriptor fd.
TCSADRAIN
Change attributes after transmitting all queued output.
TCSAFLUSH
Change attributes after transmitting all queued output and discarding all queued input.
TCSANOW
Change attributes immediately.
tcsendbreak
Send a break on file descriptor fd.
tcsetattr
Set the tty attributes for file descriptor fd.
tcsetwinsize
Set the tty winsize for file descriptor fd.