Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stty(1) — Unisoft V7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ioctl(2)

tabs(1)

tset(1)

stty(1)

STTY(1)  —  UNIX Programmer’s Manual

NAME

stty − set terminal options

SYNOPSIS

stty [ option ... ]

DESCRIPTION

Stty sets certain I/O options on the current output terminal.  With no argument, it reports the current settings of the options.  The option strings are selected from the following set:

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 back)

−raw negate raw 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 newline 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 do not echo characters

lcase map upper case to lower case

−lcase do not map case

−tabs replace tabs by spaces when printing

tabs preserve tabs

ek reset erase and kill characters back to normal # and @

erase c set erase character to c (default ’#’.) 

kill c set kill character to c (default ’@’.) 

intr c set interrupt character to c (default DEL.) 

quit c set quit character to c (default control \.) 

start c set start character to c (default control Q.) 

stop c set stop character to c (default control S.) 

eof c set end of file character to c (default control D.) 

brk c set break character to c (default undefined.)  This character is an extra wakeup causing character. 

cr0 cr1 cr2 cr3
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

EXAMPLE

stty

produces a list of the terminal settings currently in use.  To change a setting, type in the command and the desired option.  More than one option can be requested on one command line. 

stty 300

sets your terminal to operate at 300 baud (hardware permitting). 

stty >/dev/tty1

reports the terminal characteristics of /dev/tty1. 

SEE ALSO

ioctl(2), tabs(1), tset(1), stty(1)

7th Edition  —  1/21/82

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026