


_O_n_l_i_n_e _M_a_n_u_a_l             User Commands                   stty(1)



NNNNAAAAMMMMEEEE
     stty - set the options for a terminal

SSSSYYYYNNNNTTTTAAAAXXXX
     ssssttttttttyyyy [ ----aaaa ] [ ----gggg ] [ _o_p_t_i_o_n_s ]

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     The _s_t_t_y command sets certain terminal I/O options for the
     device that is its standard input; without arguments, it
     reports the settings of certain options; with the ----aaaa option,
     it reports all of the option settings; with the ----gggg option,
     it reports all settings in a form that can be used as an
     argument to another _s_t_t_y command.  Detailed information
     about the modes listed in the first five groups below may be
     found in _t_e_r_m_i_o(4).  Options in the last group are imple-
     mented using options in the previous groups.  Note that many
     combinations of options make no sense, but no sanity check-
     ing is performed.  The options are selected from the follow-
     ing:

     CCCCOOOONNNNTTTTRRRROOOOLLLL MMMMOOOODDDDEEEESSSS

     ccccllllooooccccaaaallll ((((----ccccllllooooccccaaaallll))))
          assume a line without (with) modem control.

     ccccrrrreeeeaaaadddd ((((----ccccrrrreeeeaaaadddd))))
          enable (disable) the receiver.

     ccccssss7777 ccccssss8888
          select character size.

     ccccssssttttooooppppbbbb ((((----ccccssssttttooooppppbbbb))))
          use two (one) stop bits per character.

     hhhhuuuuppppccccllll ((((----hhhhuuuuppppccccllll))))
          hang up (do not hang up) modem connection on last
          close.

     hhhhuuuupppp ((((----hhhhuuuupppp))))
          same as _h_u_p_c_l (-_h_u_p_c_l).

     ppppaaaarrrreeeennnnbbbb ((((----ppppaaaarrrreeeennnnbbbb))))
          enable (disable) parity generation and detection.

     ppppaaaarrrroooodddddddd ((((----ppppaaaarrrroooodddddddd))))
          select odd (even) parity.

     iiiissssppppeeeeeeeedddd _n_u_m_b_e_r
          Same as _n_u_m_b_e_r except that the current speed is
          retained if _n_u_m_b_e_r is zero.

     oooossssppppeeeeeeeedddd _n_u_m_b_e_r
          Same as _n_u_m_b_e_r.

     _n_u_m_b_e_r
          Set terminal baud rate to the number given, if possi-
          ble.








     IIIINNNNPPPPUUUUTTTT MMMMOOOODDDDEEEESSSS

     bbbbrrrrkkkkiiiinnnntttt ((((----bbbbrrrrkkkkiiiinnnntttt))))
          signal (do not signal) interrupt on break.

     iiiiccccrrrrnnnnllll ((((----iiiiccccrrrrnnnnllll))))
          map (do not map) CR to NL on input.

     iiiiggggnnnnbbbbrrrrkkkk ((((----iiiiggggnnnnbbbbrrrrkkkk))))
          ignore (do not ignore) break on input.

     iiiiggggnnnnccccrrrr ((((----iiiiggggnnnnccccrrrr))))
          ignore (do not ignore) carriage-return on input.

     iiiinnnnllllccccrrrr ((((----iiiinnnnllllccccrrrr))))
          map (do not map) newline to carriage-return on input.

     iiiinnnnppppcccckkkk ((((----iiiinnnnppppcccckkkk))))
          enable (disable) input parity checking.

     iiiissssttttrrrriiiipppp ((((----iiiissssttttrrrriiiipppp))))
          strip (do not strip) input characters to seven bits.

     iiiiuuuuccccllllcccc ((((----iiiiuuuuccccllllcccc))))
          map (do not map) upper-case alphabetics to lower-case
          on input.  See also llllccccaaaasssseeee.

     iiiixxxxoooonnnn ((((----iiiixxxxoooonnnn))))
          enable (disable) START/STOP output control.  Output is
          stopped by sending a <Ctrl-s> and started by sending a
          <Ctrl-q>.

     iiiixxxxaaaannnnyyyy ((((----iiiixxxxaaaannnnyyyy))))
          allow any character (not only <Ctrl-q>) to restart out-
          put.  This is only meaningful if the iiiixxxxoooonnnn option is on.

     iiiixxxxooooffffffff ((((----iiiixxxxooooffffffff))))
          request that the system send (not send) START/STOP
          characters when the input queue is nearly empty/full.

     ppppaaaarrrrmmmmrrrrkkkk ((((----ppppaaaarrrrmmmmrrrrkkkk))))
          mark (do not mark) parity errors.

     OOOOUUUUTTTTPPPPUUUUTTTT MMMMOOOODDDDEEEESSSS

     ooooccccrrrrnnnnllll ((((----ooooccccrrrrnnnnllll))))
          map (do not map) carriage-return to newline on output.

     oooonnnnooooccccrrrr ((((----oooonnnnooooccccrrrr))))
          do not (do) output carriage-return at column zero.

     oooonnnnllllrrrreeeetttt ((((----oooonnnnllllrrrreeeetttt))))
          the terminal newline key performs (does not perform)
          the carriage-return function.

     oooollllccccuuuucccc ((((----oooollllccccuuuucccc))))
          map (do not map) lower-case alphabetics to upper-case
          on output.  See also llllccccaaaasssseeee.

     oooonnnnllllccccrrrr ((((----oooonnnnllllccccrrrr))))






          map (do not map) NL to CR-NL on output.

     oooonnnnooooeeeeooootttt ((((----oooonnnnooooeeeeooootttt))))
          ignore (do not ignore) EOT (<Crtl-D>) on output.

     ooooppppoooosssstttt ((((----ooooppppoooosssstttt))))
          post-process output (do not post-process output; ignore
          all other output modes).

     ttttaaaabbbb0000 ttttaaaabbbb3333
          select style of delay for horizontal tabs.

     LLLLOOOOCCCCAAAALLLL MMMMOOOODDDDEEEESSSS

     iiiiccccaaaannnnoooonnnn ((((----iiiiccccaaaannnnoooonnnn))))
          enable (disable) canonical input (ERASE and KILL char-
          acter processing).

     iiiissssiiiigggg ((((----iiiissssiiiigggg))))
          enable (disable) signals.  If enabled, each input char-
          acter is checked against the special control characters
          INTR, QUIT and SUSP.

     eeeecccchhhhoooo ((((----eeeecccchhhhoooo))))
          echo (do not echo) every character.

     eeeecccchhhhooooccccttttllll ((((----eeeecccchhhhooooccccttttllll))))
          echo (do not echo) control characters as ^_c_h_a_r, delete
          as ^?.

     eeeecccchhhhooooeeee ((((----eeeecccchhhhooooeeee))))
          echo (do not echo) the ERASE character as backspace-
          space-backspace, which effectively erases the character
          in that position.

     eeeecccchhhhooookkkk ((((----eeeecccchhhhooookkkk))))
          echo (do not echo) newline after KILL character.

     eeeecccchhhhoooonnnnllll ((((----eeeecccchhhhoooonnnnllll))))
          echo (do not echo) NL when eeeecccchhhhoooo is disabled.

     eeeecccchhhhooookkkkeeee ((((----eeeecccchhhhooookkkkeeee))))
          erase (do not erase) entire line on line kill.

     eeeecccchhhhoooopppprrrrtttt ((((----eeeecccchhhhoooopppprrrrtttt))))
          enable (disable) visual erase mode when echoe is dis-
          abled.

     nnnnooooffffllllsssshhhh ((((----nnnnooooffffllllsssshhhh))))
          disable (enable) flush after INTR, QUIT and SUSP.

     ttttoooossssttttoooopppp ((((----ttttoooossssttttoooopppp))))
          send (do not send) SIGTTOU on output from background
          process.

     iiiieeeexxxxtttteeeennnn ((((----iiiieeeexxxxtttteeeennnn))))
          enable (disable) extended input processing: _l_n_e_x_t and
          _d_i_s_c_a_r_d.

     aaaallllttttwwwweeeerrrraaaasssseeee ((((----aaaallllttttwwwweeeerrrraaaasssseeee))))






          enable (-disable) alternate word erase algorithm.

     CCCCOOOONNNNTTTTRRRROOOOLLLL AAAASSSSSSSSIIIIGGGGNNNNMMMMEEEENNNNTTTTSSSS

     _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r _s_t_r_i_n_g
          Set _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r to _s_t_r_i_n_g, where _c_o_n_t_r_o_l-
          _c_h_a_r_a_c_t_e_r is one of: eeeerrrraaaasssseeee, kkkkiiiillllllll, iiiinnnnttttrrrr, qqqquuuuiiiitttt, eeeeooooffff, eeeeoooollll,
          ssssuuuusssspppp, ssssttttaaaarrrrtttt, ssssttttoooopppp, llllnnnneeeexxxxtttt, ddddiiiissssccccaaaarrrrdddd, wwwweeeerrrraaaasssseeee, rrrreeeepppprrrriiiinnnntttt, or
          ddddssssuuuusssspppp.  If _s_t_r_i_n_g is a single character, the control
          character is set to that character.  If _s_t_r_i_n_g is a two
          character string starting with a caret (^), the value
          used is the corresponding CTRL character (e.g., "^d" is
          interpreted as <Ctrl-d>; "^?" is interpreted as DEL. If
          _s_t_r_i_n_g is the two character sequence "^-" or the string
          "undef", the control character is set to
          _POSIX_VDISABLE, i.e. the control character is no
          longer interpreted.

     mmmmiiiinnnn _n_u_m_b_e_r
          Set the value of mmmmiiiinnnn to _n_u_m_b_e_r. mmmmiiiinnnn is used in non-
          canonical mode input processing (----iiiiccccaaaannnnoooonnnn).

     ttttiiiimmmmeeee _n_u_m_b_e_r
          Set the value of ttttiiiimmmmeeee to _n_u_m_b_e_r. ttttiiiimmmmeeee is used in non-
          canonical mode input processing (----iiiiccccaaaannnnoooonnnn).

     CCCCOOOOMMMMBBBBIIIINNNNAAAATTTTIIIIOOOONNNN MMMMOOOODDDDEEEESSSS

     ppppaaaarrrriiiittttyyyy or eeeevvvveeeennnnpppp
          enable ppppaaaarrrreeeennnnbbbb and ccccssss7777.

     ooooddddddddpppp enable ppppaaaarrrreeeennnnbbbb, ccccssss7777, and ppppaaaarrrroooodddddddd.

     ----ppppaaaarrrriiiittttyyyy or ----eeeevvvveeeennnnpppp
          disable ppppaaaarrrreeeennnnbbbb and set ccccssss8888.

     ----ooooddddddddpppp
          disable ppppaaaarrrreeeennnnbbbb and ppppaaaarrrroooodddddddd, and set ccccssss8888.

     rrrraaaawwww ((((----rrrraaaawwww or ccccooooooookkkkeeeedddd)))).
          enable (disable) raw input and output (no control char-
          acter input processing, no output post processing).

     nnnnllll ((((----nnnnllll))))
          suppress (allow) new line mapping.  The meaning of the
          minus sign with this command is counter-intuitive:  nnnnllll
          clears both iiiiccccrrrrnnnnllll and oooonnnnllllccccrrrr, meaning CR is not mapped
          on input, and NL is not mapped on output;  ----nnnnllll returns
          the terminal to the normal state where both iiiiccccrrrrnnnnllll and
          oooonnnnllllccccrrrr are set, meaning CR is mapped to NL on input, and
          NL is mapped to CR-NL on output.  In addition ----nnnnllll
          unsets iiiinnnnllllccccrrrr, iiiiggggnnnnccccrrrr, ooooccccrrrrnnnnllll, and oooonnnnllllrrrreeeetttt.

     llllccccaaaasssseeee ((((----llllccccaaaasssseeee))))
          set (unset) iiiiuuuuccccllllcccc, and oooollllccccuuuucccc.

     LLLLCCCCAAAASSSSEEEE ((((----LLLLCCCCAAAASSSSEEEE))))
          same as llllccccaaaasssseeee ((((----llllccccaaaasssseeee)))).

     ttttaaaabbbbssss ((((----ttttaaaabbbbssss))))






          preserve (space-expand) tabs when printing.

     eeeekkkk   set erase character and kill characters to their
          default values.

     ssssaaaannnneeee set all modes to some reasonable values.

SSSSEEEEEEEE AAAALLLLSSSSOOOO
     System facilities (4): termio

August 1991                                   TX User's Reference

















































