STTY(1) HP-UX 5.0 STTY(1) NAME stty - set the options for a terminal port SYNOPSIS stty [ -a ] [ -g ] [ options ] HP-UX COMPATIBILITY Level: HP-UX/NUCLEUS Origin: System III DESCRIPTION Stty sets certain terminal I/O options for the device that is the current standard input; without arguments, it reports the settings of certain options; with the -a option, it reports all of the option settings; with the -g option, it reports current settings in a form that can be used as an argument to another stty command. Detailed information about the modes listed in the first five groups below may be found in termio(4) for asynchronous lines. Options in the last group are implemented using options in the previous groups. Note that many combinations of options make no sense, but no sanity checking is performed. The options are selected from the following: Control Modes parenb (-parenb) enable (disable) parity generation and detection. parodd (-parodd) select odd (even) parity. cs5 cs6 cs7 cs8 select character size (see termio(4)). 0 hang up phone line immediately. 50 75 110 134.5 150 200 300 600 900 1200 1800 2400 3600 4800 7200 9600 19200 38400 exta extb Set terminal baud rate to the number given, if possible. (All speeds are not supported by all hardware interfaces.) hupcl (-hupcl) hang up (do not hang up) modem connection on last close. hup (-hup) same as hupcl (-hupcl). cstopb (-cstopb) use two (one) stop bits per character. cread (-cread) enable (disable) the receiver. crts (-crts) enable (disable) request-to-send. clocal (-clocal) assume a line without (with) modem control. Input Modes ignbrk (-ignbrk) ignore (do not ignore) break on input. ienqak (-ienqak) enable (disable) ENQ-ACK handshaking. brkint (-brkint) signal (do not signal) INTR on break. ignpar (-ignpar) ignore (do not ignore) parity errors. parmrk (-parmrk) mark (do not mark) parity errors (see termio(4)). inpck (-inpck) enable (disable) input parity checking. istrip (-istrip) strip (do not strip) input characters to seven bits. inlcr (-inlcr) map (do not map) NL to CR on input. igncr (-igncr) ignore (do not ignore) CR on input. icrnl (-icrnl) map (do not map) CR to NL on input. iuclc (-iuclc) map (do not map) upper-case alphabetics to lower case on input. ixon (-ixon) enable (disable) START/STOP output control. Output is stopped by sending an ASCII DC3 and started by sending an ASCII DC1. ixany (-ixany) allow any character (only DC1) to restart output. ixoff (-ixoff) request that the system send (not send) START/STOP characters when the input queue is nearly empty/full. Output Modes opost (-opost) post-process output (do not post-process output; ignore all other output modes). olcuc (-olcuc) map (do not map) lower-case alphabetics to upper case on output. onlcr (-onlcr) map (do not map) NL to CR-NL on output. ocrnl (-ocrnl) map (do not map) CR to NL on output. onocr (-onocr) do not (do) output CRs at column zero. onlret (-onlret) on the terminal NL performs (does not perform) the CR function. ofill (-ofill) use fill characters (use timing) for delays. ofdel (-ofdel) fill characters are DELs (NULs). cr0 cr1 cr2 cr3 select style of delay for carriage returns (see termio(4)). nl0 nl1 select style of delay for line-feeds (see termio(4)). tab0 tab1 tab2 tab3 select style of delay for horizontal tabs (see termio(4). bs0 bs1 select style of delay for backspaces (see termio(4)). ff0 ff1 select style of delay for form-feeds (see termio(4)). vt0 vt1 select style of delay for vertical tabs (see termio(4)). Local Modes isig (-isig) enable (disable) the checking of characters against the special control characters INTR and QUIT. icanon (-icanon) enable (disable) canonical input (ERASE and KILL processing). xcase (-xcase) canonical (unprocessed) upper/lower-case presentation. echo (-echo) echo back (do not echo back) every character typed. echoe (-echoe) echo (do not echo) ERASE character as a backspace-space-backspace string. Note: this mode will erase the ERASEed character on many CRT terminals; however, it does not keep track of column position and, as a result, may be confusing on escaped characters, tabs, and backspaces. echok (-echok) echo (do not echo) NL after KILL character. lfkc (-lfkc) the same as echok (-echok); obsolete. echonl (-echonl) echo (do not echo) NL. noflsh (-noflsh) disable (enable) flush after INTR or QUIT. Control Assignments control-character c set control-character to c, where control- character is erase, kill, intr, quit, swtch, eof, min, or time (min and time are used with -icanon; see termio(4)). If c is preceded by an (escaped from the shell) caret (^), then the value used is the corresponding CTRL character (e.g., ``^d'' is a CTRL-d); ``^?'' is interpreted as DEL and ``^-'' is interpreted as undefined. line i set line discipline to i (0 < i < 127 ). (See termio(4)). Combination Modes evenp or parity enable parenb and cs7. oddp enable parenb, cs7, and parodd. -parity, -evenp, or -oddp disable parenb, and set cs8. raw (-raw or cooked) enable (disable) raw input and output (no ERASE, KILL, INTR, QUIT, EOT, or output post processing). nl (-nl) unset (set) icrnl, onlcr. In addition -nl unsets inlcr, igncr, ocrnl, and onlret. lcase (-lcase) set (unset) xcase, iuclc, and olcuc. LCASE (-LCASE) same as lcase (-lcase). tabs (-tabs or tab3) preserve (expand to spaces) tabs when printing. ek reset ERASE and KILL characters back to normal # and @. sane resets all modes to some reasonable values. term set all modes suitable for the terminal type term, where term is one of tty33, tty37, vt05, tn300, ti700, hp, HARDWARE DEPENDENCIES IPC, Series 200/500: Refer to termio(4) for a description of the capabilities that are not supported. SEE ALSO tabs(1), ioctl(2), termio(4).