SYNOPSIS

       stty [-a] [-g] [options]


DESCRIPTION

       Stty sets certain I/O options on the terminal currently associated with
       standard input.  With no argument, it reports the current  settings  of
       selected  options;  the  -a flag causes it to report all options.  With
       the -g flag, stty prints all settings in a form that can be  passed  to
       it again to restore the current settings.

       The option strings are selected from the following set; where an option
       is shown prefixed by `[-]', it can be negated as described in the text.

       Control modes:


       l1w(16n)  l.   [-]parenb enable  (disable) parity bits [-]parodd select
       odd (even) parity cs5 cs6 cs7 cs8     set character size  [-]cstopb use
       two  (one)  stop bits per character       [-]clocal line has (no) modem
       control [-]hupcl  T{ hang up (do not hang up) dataphone on  last  close
       T} [-]hup    same as hupcl 0    hang up phone line immediately T{

50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 exta extb

T}   T{  Set terminal baud rate to the number given, if possible (not all ter-
minals support all rates).  T}

       Input modes:


       l1w(16n)  l.   [-]ignbrk ignore  (respect)  break  character
       [-]brkint (do  not)  send  interrupt on break [-]ignpar (do not) ignore
       parity errors [-]parmrk (do not) mark  parity  errors  [-]inpck  enable
       (disable)  parity  checking [-]istrip T{ (do not) strip characters to 7
       bits T} [-]inlcr  (do not) map NL to CR [-]igncr  (do  not)  ignore  CR
       [-]icrnl  (do  not)  map CR to NL [-]iuclc  (do not) map upper to lower
       case [-]ixon   enable start/stop control [-]ixany  any  character  (DC1
       only)  restarts output [-]ixoff  T{ (do not) send start/stop characters
       when the input queue is nearly full T} [-]imaxbel     T{ (do not)  ring
       the bell when running out of input buffers T} [-]iutf8  (do not) handle
       input as UTF-8

       Output modes:


       l1w(16n)  l.   [-]opost  enable  (disable)  output  processing
       [-]olcuc  (do not) map upper to lower case [-]onlcr  (do not) map NL to
       CR  [-]onocr  (do  not)  ignore  CR  [-]onlret NL   is   (not)   return
       [-]ofill  (do  not) use fill characters [-]ofdel  fill character is DEL
       (NUL) cr0 cr1 cr2 cr3     T{ select style of delay for carriage  return
       (see  termio(3)) T} nl0 nl1 nl2 nl3     select style of delay for line-
       feed T{

tab0 tab1 tab2 tab3


T} select style of delay for tab ff0 ff1 select style of delay for form

       not) echo  erased  characters  [-]echoke T{  (do  not)  print  `^H  ^H'
       sequences   at   line   erase  T}  [-]flusho output  is  (not)  flushed
       [-]pendin (do not) retype pending input [-]iexten T{  enable  (disable)
       extended control characters T}

       Control characters:


       l1w(16n)  l.   intr  c    set  intr character to c.  quit c    set quit
       character to c.  erase c   set erase character  to  c.   kill  c    set
       kill  character to c.  eof c     set eof character to c.  eol c     set
       eol character to c.  eol2 c    set eol2 character to c.  swtch  c   set
       swtch  character  to  c.   start  c   set  start  character to c.  stop
       c    set stop character to c.   susp  c    set  susp  character  to  c.
       dsusp  c    set dsusp character to c.  rprnt c   set rprnt character to
       c.  flush c   set flush character to c.  werase c  set werase character
       to c.  lnext c   set lnext character to c.

       A  control  character may be either given as a literal character, or as
       `^c' for ASCII control characters CTRL-c; the special values  `^-'  and
       `undef'  disable  the control function.  Multibyte characters cannot be
       used as control characters; trying to do so will result in the  control
       character  set  to  the first byte of the multibyte character sequence,
       which has the undesired effect of applying the control function to more
       characters than the one supplied.

       Combination modes et cetera:


       l1w(16n)  l.   [-]raw    T{  (no)  raw mode input (i.e. no erase, kill,
       interrupt, quit, EOT; parity bit  passed  back)  T}  cooked    same  as
       -raw                                 sane reset  all values to defaults
       [-]cbreak T{ make each character available to read(2) as  received;  no
       erase  and kill (make characters available to read only when newline is
       received) T}  [-]oddp   allow  (disallow)  odd  parity  [-]evenp  allow
       (disallow)  even  parity [-]nl     T{ accept only new-line to end lines
       (allow carriage return for new-line,  and  output  CR-LF  for  carriage
       return  or  new-line)  T} [-]lcase  T{ (do not) map upper case to lower
       case T} [-]LCASE  T{ same as lcase T}  [-]tabs   T{  (do  not)  replace
       tabs  by  spaces when printing T} nul-fill  use NUL to fill output del-
       fill  use DEL to fill  output  [-]fill   T{  select  NUL-filled  output
       (disable  output  filling)  T}  ek   T{ reset erase and kill characters
       back to normal ^H and ^U T} tty33     T{ set all modes suitable for the
       Teletype  Corporation Model 33 terminal.  T} tty37     T{ set all modes
       suitable for the Teletype Corporation Model 37  terminal.   T}  vt05 T{
       set  all  modes  suitable  for Digital Equipment Corp. VT05 terminal T}
       tn300     T{ set all modes suitable for a General Electric TermiNet 300
       T} ti700     T{ set all modes suitable for Texas Instruments 700 series
       terminal T} tek  T{ set all modes suitable for Tektronix 4014  terminal
       T}   min  T{  minimal  number  of  bytes  for  non-canonical  input  T}
       time timeout for non-canonical input rows T{ set the height of the ter-
       minal in character cell units T} columns   T{ set the width of the ter-

Heirloom Toolchest                  7/15/04                            STTY(1)

Man(1) output converted with man2html