man(1) Manual page archive


     STTY(1)                                                   STTY(1)

     NAME
          stty - set terminal options

     SYNOPSIS
          stty [ option ... ]

     DESCRIPTION
          Stty sets certain I/O options for the terminal open on (file
          descriptor 3).  With no argument, it reports the current
          settings of the options.  The options are:

          even      Allow even parity.
          -even     Disallow even parity.
          odd       Allow odd parity.
          -odd      Disallow odd parity.
          raw       Raw mode input: no erase, kill, interrupt, quit,
                    EOT; parity bit passed to processes.
          -raw      Turn off raw mode.
          8bit      Eight-bit mode: don't strip parity in the device
                    driver.
          -8bit     Turn off eight-bit mode.
          cooked    Same as `-raw'.
          cbreak    Make each character available to read(2) as
                    received; no erase and kill.
          -cbreak   Make characters available to read only when new-
                    line is received.
          -nl       Allow carriage return for new-line, and output
                    CR-LF for carriage return or new-line.
          nl        Accept only new-line to end lines.
          echo      Echo back every character typed.
          -echo     Turn off echo.
          lcase     Map upper case to lower case.
          -lcase    Preserve case.
          -tabs     Replace tabs by spaces when printing.
          tabs      Preserve tabs.
          ek        Reset erase and kill characters to traditional
                    backspace @.
          erase c   Set erase character to c (initially  backspace).
                    In this and other character-setting options a `^'
                    may precede c to signify control-c.
          kill c    Set kill character to c (initially @).
          intr c    Set interrupt character to c (initially DEL).
          quit c    Set quit character to c (initially control-\).
          stop c    Set stop character to c (initially control-S).
          start c   Set start character to c (initially control-Q).
          eof c     Set `end of file' character to c (initially
                    control-D).
          brk c     Set `line-break' character to c (initially unde-
                    fined).
          cr0 cr1 cr2 cr3

     STTY(1)                                                   STTY(1)

                    Select style of delay for carriage return; see
                    ioctl(2).
          nl0 nl1 nl2 nl3
                    Select style of delay for linefeed.
          tab0 tab1 tab2 tab3
                    Select style of delay for tab.
          ff0 ff1   Select style of delay for form feed.
          bs0 bs1   Select style of delay for backspace.
          hup       Hang up on last close.
          0         Hang up immediately.
          50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 exta extb
                    Set terminal baud rate to the number given, if
                    possible.
          old       Arrange to use normal teletype line discipline,
                    ttyld(4).
          old!      Force normal teletype line discipline, even if no
                    teletype driver was present.
          notty     Remove the top-level teletype driver.

     SEE ALSO
          ttyld(4), ioctl(2), tabs(1)