ENCORE3
STTYSNTX
SYNTAX: stty [-a][-g][options] [< device ]
-a - Causes stty to report all the option settings.
-g - Causes stty to report current settings in
a form that can be used as an argument to another stty
command.
stty - Entered alone produces a short list of the
current settings.
stty < /dev/ttyX - Will produce the terminal
settings for the terminal /dev/ttyX.
stty OPTIONS
50 300 1200 2400 4800 9600 - sets the terminal baud rate if possible.
onlcr(-onlcr) - maps (does not map) NL to CR-NL on output.
echo(-echo) - echoes (does not echo) every character entered.
echoe(-echoe) - echoes (does not echo) ERASE character as
a backspace character string.
evenp or parity - enables even parity or specified parity.
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, New Line 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 simply typing:
stty
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.
speed 9600 baud; evenp hupcl
erase = ^h; swtch = ^`;
brkint -inpck icrnl -ixany onlcr tab3
echo echoe echok
DOSJMP
Assuming that the user on the
terminal ttyj5 reports
terminal problems, you would first
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 /dev/ttyj5 as input
for stty
Please type stty < /dev/ttyj5
You will be helped this time!
FORGET2
stty < /dev/ttyj5
Observe the result above.
speed 9600 baud; -parity hupcl
-inpck -istrip -ixon
-isig -icanon -echo -echoe -echok
If you want to set the mode
on terminal /dev/ttyj6
to noecho, (-echo), and the
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 -echo and 4800
as arguments for stty and
provide input from /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
could 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 try the sane option
with stty
Please type stty sane < /dev/ttyk5
You will be helped this time!
$PROMPT$
FORGET4
stty sane < /dev/ttyk5
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.