|
|
/usr/xpg4/bin/stty
[
-a
|
-g
]
/usr/xpg4/bin/stty
[
modes
]
In this report, if a character is preceded by a caret (^), then the value of that option is the corresponding control character (for example, ``^h'' is CTRL-H; in this case, recall that CTRL-H is the same as the ``back-space'' key.) The sequence ``^''' means that an option has a null value.
See termio.7i for detailed information about the modes listed from Control Modes through Local Modes. For detailed information about the modes listed under Hardware Flow Control Modes and Clock Modes, below, see termiox.7i
Operands described in the Combination Modes section are implemented using options in the earlier sections. Note that many combinations of options make no sense, but no sanity checking is performed. Hardware flow control and clock modes options may not be supported by all hardware interfaces.
In the POSIX locale, if c is preceded by a caret (^) indicating an escape from the shell and is one of those listed in the ^c column of the following table, then its value used (in the Value column) is the corresponding control character (for example, ``^d'' is a CTRL-D). ``^?'' is interpreted as DEL and ``^-'' is interpreted as undefined.
+--------------+----------------+--------------+
| ^c Value | ^c Value | ^c Value |
+--------------+----------------+--------------+
|a, A <SOH> | l, L <FF> | w, W <ETB> |
|b, B <STX> | m, M <CR> | x, X <CAN> |
|c, C <ETX> | n, N <SO> | y, Y <EM> |
|d, D <EOT> | o, O <SI> | z, Z <SUB> |
|e, E <ENQ> | p, P <DLE> | [ <ESC> |
|f, F <ACK> | q, Q <DC1> | \ <FS> |
|g, G <BEL> | r, R <DC2> | ] <GS> |
|h, H <BS> | s, S <DC3> | ^ <RS> |
|i, I <HT> | t, T <DC4> | _ <US> |
|j, J <LF> | u, U <NAK> | ? <DEL> |
|k, K <VT> | v, V <SYN> | |
+--------------+----------------+--------------+
stty cs8 -icanon min 1 time 0 -isig -xcase -inpck -opost
saveterm="$(stty -g)" # save terminal state stty (new settings) # set new state ... # ... stty $saveterm # restore terminal state
Since the -a format is so loosely specified, scripts that save and restore terminal settings should use the -g option.
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97