[This is preliminary documentation and subject to change.]
These codes describe the current state of a terminal device.
typedef enum { TS_INUSE, TS_NOTINUSE } TERMINAL_STATE;