Technical data
SunOS 5.5 STREAMS Modules ttcompat(7M)
Also associated with each terminal is a local flag word, specifying flags supported by the
new 4BSD terminal interface. Most of these flags are directly mapped to flags in the ter-
mios structure:
local flags flags in termios structure
LCRTBS not supported
LPRTERA ECHOPRT in the c_lflag field
LCRTERA ECHOE in the c_lflag field
LTILDE not supported
LTOSTOP TOSTOP in the c_lflag field
LFLUSHO FLUSHO in the c_lflag field
LNOHANG CLOCAL in the c_cflag field
LCRTKIL ECHOKE in the c_lflag field
LCTLECH CTLECH in the c_lflag field
LPENDIN PENDIN in the c_lflag field
LDECCTQ complement of IXANY in the c_iflag field
LNOFLSH NOFLSH in the c_lflag field
Another structure associated with each terminal is the ltchars structure which defines
control characters for the new4BSD terminal interface. Its structure is:
struct ltchars {
char t_suspc; /∗ stop process signal ∗/
char t_dsuspc; /∗ delayed stop process signal ∗/
char t_rprntc; /∗ reprint line ∗/
char t_flushc; /∗ flush output (toggles) ∗/
char t_werasc; /∗ word erase ∗/
char t_lnextc; /∗ literal next character ∗/
};
The characters are mapped to members of the c_cc field of the termios structure as fol-
lows:
ltchars c_cc index
t_suspc VSUSP
t_dsuspc VDSUSP
t_rprntc VREPRINT
t_flushc VDISCARD
t_werasc VWERASE
t_lnextc VLNEXT
IOCTLS ttcompat responds to the following ioctl calls. All others are passed to the module
below.
TIOCGETP The argument is a pointer to an sgttyb structure. The current terminal state
is fetched; the appropriate characters in the terminal state are stored in that
structure, as are the input and output speeds. The values of the flags in the
sg_flags field are derived from the flags in the terminal state and stored in
the structure.
modified 2 Jun 1995 7M-387










