ENCORE3
STTYSNTX
SYNTAX: stty [options] < device
stty - with no arguments produces a short list
of the current settings.
all - causes stty to report all
the option settings.
everything - causes stty to report everything
it knows about
stty OPTIONS
300 1200 2400 4800 9600 - sets the terminal baud
rate if possible
-nl(nl) - allows (does not allow) CR for newlines
echo(-echo) - echoes back (does not echo back) every
character entered.
erase c - set erase character to c (default ^h)
kill c - set kill character to c (default ^u)
crt - set crt options: crtbs, ctlecho, crterase, crtkill
See User Reference Manual for further details.
LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit, <CR> - to continue
GO
stty sets and prints the terminal characteristics.
Terminal characteristics include: parity, terminal baud rate, hanging up
of the phone connection, number of stop bits, modem/nomodem control
on the line, BREAK signal character, newline and carriage return
mapping, fill characters, ERASE and KILL processing, echo enable/
disable, style of delay, etc.
The syntax for the stty command is shown above.
Let us obtain the characteristics of
your terminal by using the stty
command at the prompt.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type $COMMAND$
Please type $COMMAND$
You will be helped this time!
FORGET1
$COMMAND$
Observe the result on the screen.
Assuming that the user on the
terminal ttyp5 reports
terminal problems, as root, you
could check the characteristics of
her/his terminal with the command:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use stty to check /dev/ttyp5
Please type stty > /dev/ttyp5
You will be helped this time!
FORGET2
stty > /dev/ttyp5
Observe the result above.
new tty, speed 9600 baud; nl
-echo tabs erase = ^H
If you want to set the terminal
modes on the terminal /dev/ttyj6
to noecho, i.e., -echo, and the
terminal baud rate to 4800, the
command to accomplish this would be:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use stty -echo 4800
for terminal /dev/ttyj6
Please type
stty -echo 4800 < /dev/ttyj6
You will be helped this time!
$PROMPT$
FORGET3
Please observe the outcome.
stty -echo 4800 < /dev/ttyj6
$PROMPT$
If the user on terminal /dev/ttyk5
had her/his terminal settings
hopelessly scrambled, before killing
the user's terminal session, you
should try to free her/his terminal
with:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use stty sane for /dev/ttyk5
Please type stty sane < /dev/ttyk5
You will be helped this time!
$PROMPT$
FORGET4
stty sane
The /dev/ttyk5 terminal should be
back to normal now.
$PROMPT$
There are numerous terminal capabilities that you
can control with stty. For more details, please
look for the stty command in your
User Reference Manual.