Terminal I/O functions deal with a general terminal interface for controlling asynchronous communications ports as shown in Table 6-4
Table 6-4 Terminal I/O Functions
Function Name |
Purpose |
---|---|
tcgetattr tcsetattr |
Get and set terminal attributes |
tcsendbreak tcdrain tcflush tcflow |
Perform line control functions |
cfgetospeed cfgetispeed cfsetispeed cfsetospeed |
Get and set baud rate |
tcgetpgrp tcsetpgrp |
Get and set terminal foreground process group ID |
tcgetsid |
Get terminal session ID |