使用SecureCRT时屏幕僵死的处理方法——Linux终端设置技巧
? 由于我們習慣了使用Ctrl+S來保存數據,所以在使用SecureCrt是經常會出現僵死的情況。
實際上是Ctrl+s用來暫停向終端發送數據的,可以使用Ctrl+q來恢復。
這些設置都是基于STTY的:
Stty(set tty)用于檢測和修改當前注冊終端的通信參數,為鍵盤的輸入和終端的輸出提供了重要的控制手段。其中stty選項前有負號(-),表示該項被清除或禁止
參數:-a, --all:輸出所有設置。
# stty -a
speed 38400 baud; rows 36; columns 134; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S;
susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
其他參數設置:
? -g, --save:輸出所有設置,輸出格式為另一個stty可以恢復當前設置的格式。
old_tty_settings=`stty -g`#保存初始的終端設置
stty "$old_tty_settings"#還原終端設置
stty cols 90#設置列寬為90
stty erase ^H#解決在SQLPLUS、FTP時無法使用backspace鍵
stty -echo#關閉回顯,默認打開回顯stty echo
?詳細使用方法請見:man stty
? Have Fun!
轉載于:https://blog.51cto.com/alexatrebooting/1330946
總結
以上是生活随笔為你收集整理的使用SecureCRT时屏幕僵死的处理方法——Linux终端设置技巧的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: RHEL6上课笔记之background
- 下一篇: Linux下监控网卡流量的软件iftop