![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/root/proc/thread-self/root/usr/share/doc/python2-docs/html/_sources/library/ |
:mod:`tty` --- Terminal control functions ========================================= .. module:: tty :platform: Unix :synopsis: Utility functions that perform common terminal control operations. .. moduleauthor:: Steen Lumholt .. sectionauthor:: Moshe Zadka <[email protected]> The :mod:`tty` module defines functions for putting the tty into cbreak and raw modes. Because it requires the :mod:`termios` module, it will work only on Unix. The :mod:`tty` module defines the following functions: .. function:: setraw(fd[, when]) Change the mode of the file descriptor *fd* to raw. If *when* is omitted, it defaults to :const:`termios.TCSAFLUSH`, and is passed to :func:`termios.tcsetattr`. .. function:: setcbreak(fd[, when]) Change the mode of file descriptor *fd* to cbreak. If *when* is omitted, it defaults to :const:`termios.TCSAFLUSH`, and is passed to :func:`termios.tcsetattr`. .. seealso:: Module :mod:`termios` Low-level terminal control interface.