An instance of “tty” is associated with every terminal port to the system (no matter what type of hardware interface is used). A “port” in this context is a place to attach a terminal line. Hence a DL11 supplies only one port, whereas a DJ11 supplies up to sixteen ports.
The “tty” structure consists of sixteen words and includes:
A. |
t_dev |
fixed for a particular |
t_addr |
terminal port; |
|
B. |
t_speeds |
fixed for a particular |
t_erase |
terminal. These values may |
|
t_kill |
be set by “stty” and |
|
t_flags |
interrogated by “gtty”; |
|
C. |
t_rawq |
list heads for three |
t_canq |
character queues: the |
|
t_outq |
so-called “raw” input, |
|
“cooked” input and the |
||
output queues; |
||
D. |
t_state |
status information which |
t_delct |
changes frequently during |
|
t_col |
normal processing; |
|
t_char |