Terminal I/O functions deal with a general terminal interface for controlling asynchronous communications ports as shown in the table below. Also see termios(3) and termio(7I).
Table 6-4 Terminal I/O FunctionsFunction Name | Purpose |
---|---|
tcgetattr(3), tcsetattr(3) | Get and set terminal attributes |
tcsendbreak(3), tcdrain(3), tcflush(3), tcflow(3) | Perform line control functions |
cfgetospeed(3), cfgetispeed(3)cfsetispeed(3), cfsetospeed(3) | Get and set baud rate |
tcsetpgrp(3) | Get and set terminal foreground process group ID |
tcgetsid(3) | Get terminal session ID |