INTR | Special character on input and is recognized if the ISIG flag (see the "Local Modes" section) is enabled. Generates a SIGINT signal which is sent to all processes in the foreground process group for which the terminal is the controlling terminal. If ISIG is set, the INTR character is discarded when processed. |
QUIT | Special character on input and is recognized if the ISIG flag is enabled. Generates a SIGQUIT signal which is sent to all processes in the foreground process group for which the terminal is the controlling terminal. If ISIG is set, the QUIT character is discarded when processed. |
ERASE | Special character on input and is recognized if the ICANON flag is set. Erases the last character in the current line; see "Canonical Mode Input Processing". It does not erase beyond the start of a line, as delimited by an NL, EOF, or EOL character. If ICANON is set, the ERASE character is discarded when processed. |
KILL | Special character on input and is recognized if the ICANON flag is set. Deletes the entire line, as delimited by a NL, EOF, or EOL character. If ICANON is set, the KILL character is discarded when processed. |
EOF | Special character on input and is recognized if the ICANON flag is set. When received, all the bytes waiting to be read are immediately passed to the process, without waiting for a newline, and the EOF is discarded. Thus, if there are no bytes waiting (that is, the EOF occurred at the beginning of a line), a byte count of zero is returned from the read, representing an end-of-file indication. If ICANON is set, the EOF character is discarded when processed. |
NL | Special character on input and is recognized if the ICANON flag is set. It is the line delimiter \n. |
EOL | Special character on input and is recognized if the ICANON flag is set. Is an additional line delimiter, like NL. |
SUSP | If the ISIG flag is enabled, receipt of the SUSP character causes a SIGTSTP signal to be sent to all processes in the foreground process group for which the terminal is the controlling terminal, and the SUSP character is discarded when processed. |
STOP | Special character on both input and output and is recognized if the IXON (output control) or IXOFF (input control) flag is set. Can be used to temporarily suspend output. It is useful with fast terminals to prevent output from disappearing before it can be read. If IXON is set, the STOP character is discarded when processed. |
START | Special character on both input and output and is recognized if the IXON (output control) or IXOFF (input control) flag is set. Can be used to resume output that has been suspended by a STOP character. If IXON is set, the START character is discarded when processed. |
CR | Special character on input and is recognized if the ICANON flag is set; it is the \r, as denoted in the C Standard {2}. When ICANON and ICRNL are set and IGNCR is not set, this character is translated into a NL, and has the same effect as a NL character. |
|
The following special characters are extensions defined by this system and are not a part of -p1003.1 termios.
EOL2 | Secondary EOL character. Same function as EOL. |
WERASE |
| Special character on input and is recognized if the ICANON flag is set. Erases the last word in the current line according to one of two algorithms. If the ALTWERASE flag is not set, first any preceding whitespace is erased, and then the maximal sequence of non-whitespace characters. If ALTWERASE is set, first any preceding whitespace is erased, and then the maximal sequence of alphabetic/underscores or non alphabetic/underscores. As a special case in this second algorithm, the first previous non-whitespace character is skipped in determining whether the preceding word is a sequence of alphabetic/underscores. This sounds confusing but turns out to be quite practical. |
REPRINT |
| Special character on input and is recognized if the ICANON flag is set. Causes the current input edit line to be retyped. |
DSUSP | Has similar actions to the SUSP character, except that the SIGTSTP signal is delivered when one of the processes in the foreground process group issues a read to the controlling terminal. |
LNEXT | Special character on input and is recognized if the IEXTEN flag is set. Receipt of this character causes the next character to be taken literally. |
DISCARD |
| Special character on input and is recognized if the IEXTEN flag is set. Receipt of this character toggles the flushing of terminal output. |
STATUS |
| Special character on input and is recognized if the ICANON flag is set. Receipt of this character causes a SIGINFO signal to be sent to the foreground process group of the terminal. Also, if the NOKERNINFO flag is not set, it causes the kernel to write a status message to the terminal that displays the current load average, the name of the command in the foreground, its process ID, the symbolic wait channel, the number of user and system seconds used, the percentage of cpu the process is getting, and the resident set size of the process. |
|
Special character functions associated with changeable special control characters can be disabled individually by setting their value to {_POSIX_VDISABLE}; see "Special Control Characters".
IGNBRK | /* ignore BREAK condition */ |
BRKINT | /* map BREAK to SIGINTR */ |
IGNPAR | /* ignore (discard) parity errors */ |
PARMRK | /* mark parity and framing errors */ |
INPCK | /* enable checking of parity errors */ |
ISTRIP | /* strip 8th bit off chars */ |
INLCR | /* map NL into CR */ |
IGNCR | /* ignore CR */ |
ICRNL | /* map CR to NL (ala CRMOD) */ |
IXON | /* enable output flow control */ |
IXOFF | /* enable input flow control */ |
IXANY | /* any char will restart after stop */ |
IMAXBEL |
| /* ring bell on input queue full */ |
|
In the context of asynchronous serial data transmission, a break condition is defined as a sequence of zero-valued bits that continues for more than the time to send one byte. The entire sequence of zero-valued bits is interpreted as a single break condition, even if it continues for a time equivalent to more than one byte. In contexts other than asynchronous serial data transmission the definition of a break condition is implementation defined.
ECHOKE | /* visual erase for line kill */ |
ECHOE | /* visually erase chars */ |
ECHO | /* enable echoing */ |
ECHONL | /* echo NL even if ECHO is off */ |
ECHOPRT | /* visual erase mode for hardcopy */ |
ECHOCTL | /* echo control chars as ^(Char) */ |
ISIG | /* enable signals INTR, QUIT, [D]SUSP */ |
ICANON | /* canonicalize input lines */ |
ALTWERASE | /* use alternate WERASE algorithm */ |
IEXTEN | /* enable DISCARD and LNEXT */ |
EXTPROC | /* external processing */ |
TOSTOP | /* stop background jobs from output */ |
FLUSHO | /* output being flushed (state) */ |
NOKERNINFO |
| /* no kernel output from VSTATUS */ |
PENDIN | /* XXX retype pending input (state) */ |
NOFLSH | /* dont flush after interrupt */ |
|
If the value of one of the changeable special control characters (see "Special Characters") is {_POSIX_VDISABLE}, that function is disabled; that is, no input data is recognized as the disabled special character. If ICANON is not set, the value of {_POSIX_VDISABLE} has no special meaning for the VMIN and VTIME entries of the c_cc array.