System Interface Guide

Terminal I/O

Terminal I/O functions deal with a general terminal interface for controlling asynchronous communications ports, as shown in the table below. Also see termios(3C) and termio(7I).

Table 5-4 Terminal I/O Functions

Function Name 


tcgetattr(3C), tcsetattr(3C) Get and set terminal attributes
tcsendbreak(3C), tcdrain(3C), tcflush(3C), tcflow(3C) Perform line control functions
cfgetospeed(3C), cfgetispeed(3C)cfsetispeed(3C), cfsetospeed(3C) Get and set baud rate
tcsetpgrp(3C) Get and set terminal foreground process group ID
tcgetsid(3C) Get terminal session ID