| The GNU C Library | www.imodulo.com · 2003-04-05 | ||
| [ Software | Documentation | Contact ] |
The entire collection of attributes of a terminal is stored in a structure of type struct termios. This structure is used with the functions tcgetattr and tcsetattr to read and set the attributes.
Structure that records all the I/O attributes of a terminal. The structure includes at least the following members:
tcflag_t c_iflagA bit mask specifying flags for input modes; see Input Modes.
tcflag_t c_oflagA bit mask specifying flags for output modes; see Output Modes.
tcflag_t c_cflagA bit mask specifying flags for control modes; see Control Modes.
tcflag_t c_lflagA bit mask specifying flags for local modes; see Local Modes.
cc_t c_cc[NCCS]An array specifying which characters are associated with various control functions; see Special Characters.
The struct termios structure also contains members which encode input and output transmission speeds, but the representation is not specified. Line Speed, for how to examine and store the speed values.
The following sections describe the details of the members of the struct termios structure.
This is an unsigned integer type used to represent the various bit masks for terminal flags.
This is an unsigned integer type used to represent characters associated with various terminal control functions.
The value of this macro is the number of elements in the c_cc array.
| © Free Software Foundation, Inc. |