termio.7 (2010 09)

t
termio(7) termio(7)
If a form-feed or vertical-tab delay is specified, it lasts for about 2 seconds.
New-line delay lasts about 0.10 seconds. If
ONLRET
is set, carriage-return delays are used instead of the
new-line delays. If
OFILL is set, two fill characters are transmitted.
Carriage-return delay type 1 depends on the current column position; type 2 is about 0.10 seconds; type 3
about 0.15 seconds. If
OFILL is set, delay type 1 transmits two fill characters; type 2, four fill charac-
ters.
Horizontal-tab delay type 1 is depends on the current column position. Type 2 is about 0.10 seconds; type
3 specifies that tabs are to be expanded into spaces. If
OFILL is set, two fill characters are transmitted
for any delay.
Backspace delay lasts about 0.05 seconds. If
OFILL
is set, one fill character is transmitted.
The actual delays depend on line speed and system load.
The initial output control value is all bits clear.
Control Modes
The
c_cflag field describes the hardware control of the terminal:
CBAUD Baud rate: CSIZE Character size:
B0 Hang up CS5 5 bits
B50 50 baud CS6 6 bits
B75 75 baud CS7 7 bits
B110 110 baud CS8 8 bits
B134 134.5 baud
B150 150 baud CSTOPB Send two stop bits, else one.
B200 200 baud CREAD Enable receiver.
B300 300 baud PARENB Parity enable.
B600 600 baud PARODD Odd parity, else even.
B900 900 baud HUPCL Hang up on last close.
B1200 1200 baud CLOCAL Local line, else dial-up.
B1800 1800 baud LOBLK Reserved for use by shl(1).
B2400 2400 baud
B3600 3600 baud
B4800 4800 baud
B7200 7200 baud
B9600 9600 baud
B19200 19200 baud
B38400 38400 baud
EXTA External A
EXTB External B
The CBAUD bits specify the baud rate. The zero baud rate,
B0, is used to hang up the connection. If B0
is specified, the modem control lines (see modem(7)) cease to be asserted. Normally, this disconnects the
line. For any particular hardware, impossible speed changes are ignored. CBAUD is provided for use
with the termio structure. When the termios structure is used, several routines are available for
setting and getting the input and output baud rates (see termios Structure Related Functions ).
The
CSIZE bits specify the character size in bits for both transmission and reception. This size does not
include the parity bit, if any. If CSTOPB is set, two stop bits are used; otherwise one stop bit. For exam-
ple, at 110 baud, many devices require two stop bits.
If
PARENB is set, parity generation is enabled (a parity bit is added to each output character). Further-
more, parity detection is enabled (incoming characters are checked for the correct parity). If PARENB is
set, PARODD specifies odd parity if set; otherwise even parity is used. If PARENB is clear, both parity
generation and parity checking are disabled.
If
CREAD is set, the receiver is enabled. Otherwise no characters can be received.
The specific effects of the
HUPCL and CLOCAL bits depend on the mode and type of the modem control
in effect. See modem(7) for the details.
If
HUPCL is set, the modem control lines for the port are lowered (disconnected) when the last process
using the open port closes it or terminates.
10 Hewlett-Packard Company 10 HP-UX 11i Version 3: September 2010