UNIX terminal I/O

Introduction I read and learned about terminal I/O on UNIX systems. Some of the more key concepts are documented here. Introduction Terminal I/O is complex, one of the reasons it is used for many things. Summarize the two working modes of terminal I/O: normal mode input processing (default), non-normal mode input processing. In canonical mode, the terminal driver returns at most one line for each read request. Terminal devices can be considered to be controlled by the terminal driver in the kernel, and each terminal device has an input queue and an output queue. When echoing is turned on, there is an implicit connection between the input queue and the output queue. The input queue length is a finite value. Although the output queue is also limited, the program cannot obtain this value. exist… Read more