Technical data
termio(7I) Ioctl Requests SunOS 5.5
If FLUSHO and IEXTEN are set, data written to the terminal is discarded. This bit is set
when theFLUSH character is typed. A program can cancel the effect of typing theFLUSH
character by clearing FLUSHO.
If PENDIN and IEXTEN are set, any input that has not yet been read is reprinted when
the next character arrives as input. PENDIN is then automatically cleared.
If IEXTEN is set, the following implementation-definedfunctions are enabled: special
characters (WERASE, REPRINT, DISCARD, and LNEXT) and local flags (TOSTOP,
ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, and PENDIN).
Minimum and
Timeout
The MIN and TIME values are described above under Non-canonical mode input process-
ing. The initial value of MIN is 1, and the initial value of TIME is 0.
Terminal size The number of lines and columns on the terminal’s display is specified in the winsize
structure defined by <sys/termios.h> and includes the following members:
unsigned short ws_row; /∗ rows, in characters ∗/
unsigned short ws_col; /∗ columns, in characters ∗/
unsigned short ws_xpixel; /∗ horizontal size, in pixels ∗/
unsigned short ws_ypixel; /∗ vertical size, in pixels ∗/
Termio structure The SunOS/SVR4 termio structure is used by some ioctls; it is defined by <sys/termio.h>
and includes the following members:
unsigned short c_iflag; /∗ input modes ∗/
unsigned short c_oflag; /∗ output modes ∗/
unsigned short c_cflag; /∗ control modes ∗/
unsigned short c_lflag; /∗ local modes ∗/
char c_line; /∗ line discipline ∗/
unsigned char c_cc[NCC]; /∗ control chars ∗/
The special control characters are defined by the array c_cc. The symbolic name NCC is
the size of the control-character array and is also defined by <termio.h>. The relative
positions, subscript names, and typical default values for each function are as follows:
0 VINTR EXT
1 VQUIT FS
2 VERASE DEL
3 VKILL NAK
4 VEOF EOT
5 VEOL NUL
6 VEOL2 NUL
7 reserved
The MIN values is stored in the VMIN element of the c_cc array; the TIME value is
stored in the VTIME elementof the c_cc array. The VMIN element is the same element
as the VEOF element; the VTIME element is the same element as the VEOL element.
7I-360 modified 30 May 1995










