Python termios Functions

EditRocket provides the following information on termios functions in the Python source code builder.

tcdrain(fd) - Wait until all output written to file descriptor fd has been transmitted.

tcflow(fd, action) - Suspend or resume input or output on file descriptor fd.

tcflush(fd, queue) - Discard queued data on file descriptor fd.

tcgetattr(fd) - Return a list containing 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) - Send a break on file descriptor fd.

tcsetattr(fd, when, attributes) - Set the tty attributes for file descriptor fd from the attributes, which is a list like the one returned by tcgetattr().