The <termios.h> header contains the definitions used by the
terminal I/O interfaces (see General Terminal Interface for
the structures and names defined).
The following data types shall be defined through typedef:
cc_t
Used for terminal special characters.
speed_t
Used for terminal baud rates.
tcflag_t
Used for terminal modes.
The above types shall be all unsigned integer types.
The implementation shall support one or more programming environments
in which the widths of cc_t, speed_t, and
tcflag_t are no greater than the width of type long. The
names of these programming environments can be obtained
using the confstr() function or the getconf utility.
The termios structure shall be defined, and shall include at
least the following members:
tcflag_t c_iflag Input modes.
tcflag_t c_oflag Output modes.
tcflag_t c_cflag Control modes.
tcflag_t c_lflag Local modes.
cc_t c_cc[NCCS] Control characters.
A definition shall be provided for:
NCCS
Size of the array c_cc for control characters.
The following subscript names for the array c_cc shall be defined:
Subscript Usage
Canonical Mode
Non-Canonical Mode
Description
VEOF
EOF character.
VEOL
EOL character.
VERASE
ERASE character.
VINTR
VINTR
INTR character.
VKILL
KILL character.
VMIN
MIN value.
VQUIT
VQUIT
QUIT character.
VSTART
VSTART
START character.
VSTOP
VSTOP
STOP character.
VSUSP
VSUSP
SUSP character.
VTIME
TIME value.
The subscript values shall be unique, except that the VMIN and VTIME
subscripts may have the same values as the VEOF and VEOL
subscripts, respectively.
The input and output baud rates are stored in the termios structure.
These are the valid values for objects of type
speed_t. The following values shall be defined, but not all
baud rates need be supported by the underlying hardware.
The following names are reserved for XSI-conformant systems to use
as an extension to the above; therefore strictly conforming
applications shall not use them:
The System Interfaces volume of IEEE Std 1003.1-2001, cfgetispeed(),
cfgetospeed(), cfsetispeed(), cfsetospeed(), confstr(),
tcdrain(), tcflow(), tcflush(), tcgetattr(),
tcgetsid(), tcsendbreak(), tcsetattr(), the Shell
and Utilities volume of IEEE Std 1003.1-2001, getconf, General
Terminal Interface
Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .
IEEE/The Open Group
<termios.h> (P)
2003
Generated by OpenAsthra.com from man0p/termios.h.0p using man macros with tbl support.