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 |
最新评论