: bool | ; | (* | Ignore the break condition. | *) | |
: bool | ; | (* | Signal interrupt on break condition. | *) | |
: bool | ; | (* | Ignore characters with parity errors. | *) | |
: bool | ; | (* | Mark parity errors. | *) | |
: bool | ; | (* | Enable parity check on input. | *) | |
: bool | ; | (* | Strip 8th bit on input characters. | *) | |
: bool | ; | (* | Map NL to CR on input. | *) | |
: bool | ; | (* | Ignore CR on input. | *) | |
: bool | ; | (* | Map CR to NL on input. | *) | |
: bool | ; | (* | Recognize XON/XOFF characters on input. | *) | |
: bool | ; | (* | Emit XON/XOFF chars to control input flow. | *) | |
: bool | ; | (* | Enable output processing. | *) | |
: int | ; | (* | Output baud rate (0 means close connection). | *) | |
: int | ; | (* | Input baud rate. | *) | |
: int | ; | (* | Number of bits per character (5-8). | *) | |
: int | ; | (* | Number of stop bits (1-2). | *) | |
: bool | ; | (* | Reception is enabled. | *) | |
: bool | ; | (* | Enable parity generation and detection. | *) | |
: bool | ; | (* | Specify odd parity instead of even. | *) | |
: bool | ; | (* | Hang up on last close. | *) | |
: bool | ; | (* | Ignore modem status lines. | *) | |
: bool | ; | (* | Generate signal on INTR, QUIT, SUSP. | *) | |
: bool | ; | (* | Enable canonical processing (line buffering and editing) | *) | |
: bool | ; | (* | Disable flush after INTR, QUIT, SUSP. | *) | |
: bool | ; | (* | Echo input characters. | *) | |
: bool | ; | (* | Echo ERASE (to erase previous character). | *) | |
: bool | ; | (* | Echo KILL (to erase the current line). | *) | |
: bool | ; | (* | Echo NL even if c_echo is not set. | *) | |
: char | ; | (* | Interrupt character (usually ctrl-C). | *) | |
: char | ; | (* | Quit character (usually ctrl-\). | *) | |
: char | ; | (* | Erase character (usually DEL or ctrl-H). | *) | |
: char | ; | (* | Kill line character (usually ctrl-U). | *) | |
: char | ; | (* | End-of-file character (usually ctrl-D). | *) | |
: char | ; | (* | Alternate end-of-line char. (usually none). | *) | |
: int | ; | (* | Minimum number of characters to read before the read request is satisfied. | *) | |
: int | ; | (* | Maximum read wait (in 0.1s units). | *) | |
: char | ; | (* | Start character (usually ctrl-Q). | *) | |
: char | ; | (* | Stop character (usually ctrl-S). | *) |
Set the status of the terminal referred to by the given
file descriptor. The second argument indicates when the
status change takes place: immediately (TCSANOW
),
when all pending output has been transmitted (TCSADRAIN
),
or after flushing all input that has been received but not
read (TCSAFLUSH
). TCSADRAIN
is recommended when changing
the output parameters; TCSAFLUSH
, when changing the input
parameters.
Send a break condition on the given file descriptor. The second argument is the duration of the break, in 0.1s units; 0 means standard duration (0.25s).
Waits until all output written on the given file descriptor has been transmitted.
Discard data written on the given file descriptor but not yet
transmitted, or data received but not yet read, depending on the
second argument: TCIFLUSH
flushes data received but not read,
TCOFLUSH
flushes data written but not transmitted, and
TCIOFLUSH
flushes both.