


      STTY(1)			 (Bull-SPS9)			STTY(1)



      NAME
	   stty	- set the options for a	terminal

      SYNTAX
	   stty	[ -a ] [ -g ] [	[-A] options ] [ [-B] options ]

      DESCRIPTION
	   Stty	sets or	examines the terminal I/O options for the
	   device that is the current standard input.  Without
	   arguments, stty reports the settings	of certain options;
	   with	the -a option, it reports all of the option settings;
	   with	the -A option, it reports all of the option settings in
	   the AT&T System V stty format; with the -B option, it
	   reports all of the option settings in the BSD 4.2 stty
	   format; 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 below
	   may be found	in termio(7).

	   The ROS tty interface is the	union of AT&T System V tty and
	   BSD 4.2 tty interfaces.  When setting options, you must
	   specify which of the	two interfaces is being	used whenever a
	   name	conflict exists	between	the two	interfaces.  For the
	   AT&T	mode setting, the command format is:

	      stty [-A]	options

	   For BSD, the	command	format is:

	      stty [-B]	options

	   Note	that the "-A" and "-B" options are to be used to force
	   the AT&T or BSD interpretation of the options.  If no option
	   is specified, the AT&T interpretation is tried first	and if
	   no match is found, the BSD option is	tried.	The options
	   listed below	have been divided into three categories: the
	   first category is the set of	options	common between AT&T and
	   BSD;	the second category is the set of options that apply
	   only	to the AT&T usage of terminals,	and the	third category
	   is a	set that only applies to the BSD 4.2 usage of
	   terminals.  Note that many combinations of options do not
	   make	sense and no sanity checking is	performed.


      AT&T and BSD COMMON OPTIONS
	   The following table lists the options that have the same
	   meaning in both AT&T	and BSD	terminal interfaces.  If an
	   option can be referred to by	both an	AT&T and a BSD option
	   name, then the BSD option is	listed in curly	brackets ({}).
	   These options can be	set using either the AT&T or BSD option
	   name.




      Page 1					      (73 A2 02MT REV1)






      STTY(1)			 (Bull-SPS9)			STTY(1)




	 Control Modes
	   0		  Hang up phone	line immediately

	   50 75 110 134 150 200
	   300 600 1200	1800 2400
	   4800	9600 19200 exta	extb
			  Set terminal baud rate to the	number given,
			  if possible.

	   clocal ( -clocal )
	   {nohang ( -nohang )}
			  Assume a line	without	(with) modem control.

	 Input Modes
	   cauto ( -cauto )
			  Enable (disable) hardware flow control.  (See
			  termio(7)).





































      Page 2					      (73 A2 02MT REV1)






      STTY(1)			 (Bull-SPS9)			STTY(1)



	   ixoff ( -ixoff )
	   {tandem ( -tandem )}
			  Request that the system send (not send)
			  START/STOP characters	when the input queue is
			  nearly empty/full.

	   ixany ( -ixany )
	   {-decctlq ( decctlq )}
			  Allow	any character (only ASCII DC 1)	to
			  restart output.

	   iuclc ( -iuclc )
	   {lcase ( -lcase )}
			  Map (do not map) upper-case alphabetics to
			  lower	case on	input.

	 Output	Modes
	   cr0 cr1 cr2 cr3
			  Select style of delay	for carriage returns
			  (see termio(7)).

	   nl0 nl1	  Select style of delay	for linefeeds (see
			  termio(7)).

	   tab0	tab1 tab2 tab3
			  Select style of delay	for horizontal tabs
			  (see termio (7)).

	   bs0 bs1	  Select style of delay	for backspaces (see
			  termio(7)).

	   ff0 ff1	  Select style of delay	for form feeds (see
			  termio(7)).

	   opost ( -opost )
	   {-litout ( litout )}
			  Post-process output (do not post-process
			  output; ignore all other output modes).

	   vt0 vt1	  Select style of delay	for vertical tabs (see
			  termio(7)).

	 Local Modes
	   echo	( -echo	)
			  Echo back (do	not echo back) every character
			  typed.

	   echoe ( -echoe )
	   {crterase ( -crterase )}
			  Echo (do not echo) ERASE character as	a
			  backspace-sp-backspace string.




      Page 3					      (73 A2 02MT REV1)






      STTY(1)			 (Bull-SPS9)			STTY(1)



	   echoi ( -echoi )
			  Echo characters when typed (read).

	   echok ( -echok )
	   {crtkill ( -crtkill )}
			  Echo NL after	kill character.

	   noflsh ( -noflsh )
			  Disable (enable) flush after INTR or QUIT.

	   lintrup ( -lintrup )
	   {intrup ( -intrup )}
			  Send (do not send) signal SIGIO when input is
			  available.  (See termio(7)).

	 Control Assignments
	   erase c	  Set erase character to c.

	   kill	c	  Set kill character to	c.

	   intr	c	  Set interrupt	character to c.

	   quit	c	  Set quit character to	c.

	   eof c	  Set end of file character to c.

	   eol c	  Set end of line character to c.

	   {brk	c}	  Set an extra new line	character to c.

	   ek		  Reset	ERASE and KILL characters back to
			  normal (control-h and	control-x).
	   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 a DEL and "^-" is
	   undefined.

      AT&T SYSTEM V ONLY OPTIONS
	   The second set of options are used to enable	or disable AT&T
	   features of the terminal interface. They do not have	a
	   corresponding feature or option in the BSD terminal
	   interface with the same semantics.

	 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(7)).  hupcl
		     (-hupcl) Hang up (do not hang up) a modem
		     connection	on last	close.



      Page 4					      (73 A2 02MT REV1)






      STTY(1)			 (Bull-SPS9)			STTY(1)



	   hup (-hup)
		     Same as hupcl (-hupcl).
	   cstopb (-cstopb)
		     Use two (one) stop	bits per character.
	   cread (-cread)
		     Enable (disable) the receiver.
	 Input Modes
	   ignbrk (-ignbrk)
		     Ignore (do	not ignore) break on input.
	   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 (7)).
	   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.
	   ixon	(-ixon)*
		     Enable (disable) START/STOP output	control.
		     Output is stopped by sending an ASCII DC3 and
		     started by	sending	an ASCII DC1.
	 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.
	   ocrcrnl (-ocrcrnl)*
		     Convert (do not convert) CR to CR-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)
		     NOT CURRENTLY IMPLEMENTED.
	   ofdel (-ofdel)
		     NOT CURRENTLY IMPLEMENTED.






      Page 5					      (73 A2 02MT REV1)






      STTY(1)			 (Bull-SPS9)			STTY(1)



	 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.
	   echonl (-echonl)
		     NOT CURRENTLY IMPLEMENTED.
	 Control Assignments
	   control-character c
		     Set control-character to c, where control-
		     character is min, or time (min and	time are used
		     with -icanon; see termio(7)).  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 a DEL and
		     ``^-'' is undefined.
	 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).
		     Please note that this option will set (unset) the
		     BSD "raw" flag unless used	with the "-A" prefix.
	   nl (-nl)  Unset (set) icrnl,	onlcr.	In addition -nl	unsets
		     inlcr, igncr, ocrnl, and onlret.  Please note that
		     this option will unset (set) the BSD CRHOD	flag
		     unless used with the "-A" option.
	   lcase (-lcase)
		     Set (unset) xcase,	iuclc, and olcuc.  Please note
		     that this option is not the same as the BSD
		     "lcase" option.
	   LCASE (-LCASE)
		     Same as lcase (-lcase).
	   tabs	(-tabs or tab3)
		     Preserve (expand to spaces) tabs when printing.
	   sane	     Resets all	modes to some reasonable values
		     (parenb|cs7|cread|brkint|ignpar|istrip|
		     icrnl|ixon|isig|icanon|echo|echoe|opost|onlcr|tab3
		     and all characters	to the default values).
	   term	     Set all modes suitable for	the terminal type term,
		     where term	is one of tty33, tty37,	vt05, tn300,
		     ti700, or tek.



      Page 6					      (73 A2 02MT REV1)






      STTY(1)			 (Bull-SPS9)			STTY(1)



	   * These options apply only to processes executing in	the
	   AT&T	System V domain.


      BSD 4.2 ONLY OPTIONS
	   The third set of options are	used to	enable or disable BSD
	   features of the terminal interface. They do not have	a
	   corresponding feature or option in the AT&T terminal
	   interface with the same semantics.


	   all	     Display all BSD normally used option settings.
	   everything
		     Display all BSD options that stty knows about.
	   even	(-even)
		     Allow (disallow) even parity input.
	   odd (-odd)
		     Allow (disallow) odd parity input.
	   raw (-raw)**
		     Set (unset) raw mode input	(no input processing
		     (erase, kill, interrupt)).
	   cooked**  Same as "-raw"
	   cbreak (-cbreak)**
		     Make each character available to read(2) as
		     received; no erase	and kill processing but	all
		     other processing (interrupt, suspend, ...)	is
		     performed.	 (make characters available to read
		     only when newline is received).
	   -nl (nl)**
		     Allow carriage return for new line, and output
		     CR-NL for carriage	return or new line (accept only
		     new line to end lines).
	   -tabs (tabs)
		     Replaces tabs by spaces when printing (preserve
		     tabs).
	   sane	     Resets all	modes to some reasonable values
		     (new|crt|-nl|echo|even/odd|noflsh and all
		     characters	to defaults values).
	   new	     Use new driver (enable job	control	processing).
	   crt	     Set options for a CRT (crtbs, ctlecho and if >=
		     1200 baud , crterase, and crtkill.)
	   crtbs     Echo backspaces on	erase characters.
	   prterase  For printing terminals, echo erase	characters
		     backwards within "\" and "/".
	   ctlecho (-ctlecho)
		     Echo control characters as	^x and delete as ^? (as
		     themselves	otherwise).
	   tostop (-tostop)
		     Background	jobs stop if they attempt terminal
		     output (otherwise allowed to produce output).
	   flusho ( -flusho)
		     Output is (not) being discarded, usually because



      Page 7					      (73 A2 02MT REV1)






      STTY(1)			 (Bull-SPS9)			STTY(1)



		     the user pressed control-o.
	   pendin (-pendin)
		     Input is (not) pending after a switch from	cbreak
		     to	cooked and will	be re-input when a read	becomes
		     pending or	more input arrives.
	   tilde (-tilde)
		     Convert "~" to "`"	on output (or leave it alone).
	   stop	c    Set stop character	to c.
	   start c   Set start character to c.
	   susp	c    Set suspend process character to c	(default
		     control-z).
	   dsusp c   Set delayed suspend process character to c
		     (default control-y).
	   rprnt c   Set reprint line character	to c (default control-
		     r).
	   flush c   Set flush output character	to c (default control-
		     o).
	   werase c  Set word erase character to c (default control-w).
	   lnext c   Set literal next character	to c (default control-
		     v).
	   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 a DEL and "^-" is
	   undefined.


	   ** These options apply only to processes executing in the
	   BSD 4.2 domain.


      EXAMPLES
	   To set the baud rate	on tty3	to 19,200, enter: stty 19200 <
	   /dev/tty3.
	   To set the "echo erase on backspace"	on tty3	enter either:
	   stty	echoe <	/dev/tty3 or
	   stty	crterase < /dev/tty3.
	   To set the BSD 4.2 "raw" flag and the characters echoing as
	   immediate, and the (AT&T) number of stop bits to 2:
	   stty	-B raw echoi -A	stopb, or
	   stty	stopb -B raw echoi.
	   Note	that "-A" and "-B" are used to force the AT&T or BSD
	   interpretation of the options, otherwise AT&T is tried first
	   and if no match is found, the BSD option is tried.
	   The command stty sane is equivalent to stty -A sane -B sane.
      LIMITATIONS
	   The -g option works only for	the AT&T termio	structure.


      SEE ALSO
	   tabs(1), ioctl(2), termio(7), tty(7)





      Page 8					      (73 A2 02MT REV1)



