March 2009
M T W T F S S
« Dec   Apr »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Some examples of stty usage

1.Typing invisiable password

1
2
3
4
5
echo "Enter your password: \c"
oldstty=`stty -g`
stty -echo intr ^-
read password
stty $oldstty

2.Backspace setting

1
stty erase ^h

3.Colunm setting

1
stty column 100

4.List current stty setting

1
2
3
stty -a (all setting)
stty    (undefault setting)
stty -g (RAW mode)

You can get the help files regarding stty usage in the folllowing ways:

1
2
3
info stty
man stty
stty --help

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>