tty¶
Terminal utilities.
Functions¶
setcbreak(fd[, when]) |
Put terminal into a cbreak mode. |
setraw(fd[, when]) |
Put terminal into a raw mode. |
tcdrain((fd) -> None) |
Wait until all output written to file descriptor fd has been transmitted. |
tcflow((fd, action) -> None) |
Suspend or resume input or output on file descriptor fd. |
tcflush((fd, queue) -> None) |
Discard queued data on file descriptor fd. |
tcgetattr((fd) -> list_of_attrs) |
Get the tty attributes for file descriptor fd, as follows: [iflag, oflag, cflag, lflag, ispeed, ospeed, cc] where cc is a list of the tty special characters (each a string of length 1, except the items with indices VMIN and VTIME, which are integers when these fields are defined). |
tcsendbreak((fd, duration) -> None) |
Send a break on file descriptor fd. |
tcsetattr((fd, when, attributes) -> None) |
Set the tty attributes for file descriptor fd. |