| type name | struct termios |
| source location | #include <termios.h> |
| type description | This type provides an interface to asynchronous communications devices |
| field 1 | c_iflag |
| field 1 description | Type: tcflag_tDescription: represents/sets the input modes of the termios structure |
| field 2 | c_oflag |
| field 2 description | Type: tcflat_tDescription: represents/sets the output modes of the termios structure |
| field 3 | c_cflag |
| field 3 description | Type: tcflag_tDescription: represents/sets the control modes of the termios structure |
| field 4 | c_lflag |
| field 4 description | Type: tcflag_tDescription: represents/sets the local modes of the termios structure |
| field 5 | c_cc[NCCS] |
| field 5 description | Type: cc_tDescription: holds an array of which the elements represent the specific values of the special control characters |
| field 6 | INTR |
| field 6 description | Special character that generates the SIGINT signalrecognized if the ISIG flag is set |
| field 7 | QUIT |
| field 7 description | Special character on input that generates a SIGQUIT signalrecognized if the ISIG flag is set |
| field 8 | ERASE |
| field 8 description | Special character on input that erases the last character in the current line, but does not erase past the line beginningrecognized if the ICANON flag is set |
| field 9 | KILL |
| field 9 description | Special character that deletes the entire linerecognized if ICANON flag is set |
| field 10 | EOF |
| field 10 description | Special character that sends all bytes waiting to be read to the waiting process without waiting for a newlinerecognized if the ICANON flag is set. |
| field 11 | NL |
| field 11 description | Special character that represents the line delimiter '\n'cannot be changedrecognized if ICANON is set |
| field 12 | EOL |
| field 12 description | Special character that also represents a line delimiterrecognized if ICANON is set |
| field 13 | STOP |
| field 13 description | Special character that temporarily suspends outputrecognized if IXON or IXOFF is set |
| field 14 | START |
| field 14 description | Special character that resumes output that has been suspended by STOPrecognized if IXON or IXOFF is set |
| field 15 | CR |
| field 15 description | Special character on input that represents '\r', which is translated into an '\n' if ICANON and ICRNL are set and IGNCR is not set.Cannot be changed.Recognized if ICANON is set |
| field 16 | IGNBRK |
| field 16 description | flag for c_iflagIf set, it causes a BRKINT to be discarded with no other action |
| field 17 | BRKINT |
| field 17 description | flag for c_iflagif IGNBRK is not set it must be setif IGNBRK is not set and it is set a break condition flushes input and output queuesgenerates a SIGINT signal to the process group if the terminal is the controlling terminal of a process group |
| field 18 | IGNPAR |
| field 18 description | flag for c_iflagif set, a byte with a framing or parity error (other than a break) is ignored |
| field 19 | PARMRK |
| field 19 description | flag for c_iflagnot supportedkeep it set as 0 |
| field 20 | ISTRIP |
| field 20 description | flac for c_iflagnot supportedkeep it set as 0POSIX.1 specifies that it causes valid input bytes to be first stripped to seven bits |
| field 21 | INPCK |
| field 21 description | flag for c_iflagenables input parity checking if set. If not set, disables input parity checking, allowing output parity generation without input parity errors. Parity checking is independent of parity detection. |
| field 22 | INLCR |
| field 22 description | flag for c_iflagIf set, a received NL is translated to a CR character. |
| field 23 | IGNCR |
| field 23 description | flag for c_iflagif set, a received CR character is ignored and not read. |
| field 24 | ICRNL |
| field 24 description | flag for c_iflagIf IGNCR is not set and ICRNL is set, a received CR character is translated into a NL character |
| field 25 | IXON |
| field 25 description | flag for c_iflagif set, START/STOP output control is enabled. |
| field 26 | IXOFF |
| field 26 description | flag for c_iflagif set, START/STOP input control is enabled. |
| field 27 | OPOST |
| field 27 description | flag of c_oflagif set, output characters are post-processed as indicated by the remaining flagsif not set, output characters are transmitted without change |
| field 28 | ONLCR |
| field 28 description | flag for c_oflagif set, the NL character is transmitted as a CR-NL pair |
| field 29 | OCRNL |
| field 29 description | flag for c_oflagif set, the CR character is transmitted as is |
| field 30 | ONOCR |
| field 30 description | flag for c_oflagif set, no CR character is transmitted when at the first position of a line |
| field 31 | ONLRET |
| field 31 description | flag for c_oflagif set, the NL character is assumed to do the carriage-return function, column pointer is cleared, and delays specified for CR are used. |
| field 32 | CSIZE |
| field 32 description | flag for c_cflagspecifies the byte size in bits for both transmission and reception. Does not include any parity bitssupported sizes are 5, 6, 7, and 8 |
| field 33 | CSTOPB |
| field 33 description | flag for c_cflagif set, two top bits are used instead of the default one |
| field 34 | CREAD |
| field 34 description | flag for c_cflagif set, receiver is enabled, otherwise no characters are received |
| field 35 | PARENB |
| field 35 description | flag for c_cflagif set, parity generation and detection is enabled and a parity bit is added to each outgoing character |
| field 36 | PARODD |
| field 36 description | flag for c_cflagif PARENB is set, this specifies odd parity if set, otherwise a default even parity is used |
| field 37 | HUPCL |
| field 37 description | flag for c_cflagif set, modem control lines for the port shall be lowered when the last process with the port open closes the port or the process terminates, breaking the modem connection. |
| field 38 | CLOCAL |
| field 38 description | flag for c_cflagif set, a connection does not depend on the state of the modem status lines.if clear, modem status lines will be monitoredonly has meaning if the terminal device file is specified as modem-controlled |
| field 39 | ECHO |
| field 39 description | flag for c_lflagif set, input characters are echoed back to the terminalif cleared, input characters are not echoed |
| field 40 | ICANON |
| field 40 description | flag for c_lflagif set, canonical processing is enabled, enabling the erase and kill edit functions and the assembly of input characters into lines delimited by NL and EOFif clear, requests are satisfied directly from the input queue. Reads will not complete until at least MIN bytes have been received, or TIME between bytes has been reached. TIME is in tenths of seconds |
| field 41 | ECHOE |
| field 41 description | flag for c_lflagif set and ICANON is set, ERASE causes the terminal to erase the last character in the current line from the display if possible |
| field 42 | ECHOK |
| field 42 description | flag for c_lflagif set and ICANON is set, the KILL character causes the terminal to erase the line from the display or echo the '\n' character after the KILL character |
| field 43 | ECHONL |
| field 43 description | flag for c_lflagif set and ICANON is set, the '\n' character shall be echoed even if ECHO is not set |
| field 44 | ISIG |
| field 44 description | flag for c_lflagif set, each input character is checked against INTR and QUIT. if there is a match, the function associated with that character is performed.if cleared, no checking is done |
| field 45 | |
| field 45 description | |
| Tags | C C++ api io software termios |