使用SecureCRT时屏幕僵死的处理方法——Linux终端设置技巧
? 由于我們習(xí)慣了使用Ctrl+S來保存數(shù)據(jù),所以在使用SecureCrt是經(jīng)常會(huì)出現(xiàn)僵死的情況。
實(shí)際上是Ctrl+s用來暫停向終端發(fā)送數(shù)據(jù)的,可以使用Ctrl+q來恢復(fù)。
這些設(shè)置都是基于STTY的:
Stty(set tty)用于檢測和修改當(dāng)前注冊終端的通信參數(shù),為鍵盤的輸入和終端的輸出提供了重要的控制手段。其中stty選項(xiàng)前有負(fù)號(-),表示該項(xiàng)被清除或禁止
參數(shù):-a, --all:輸出所有設(shè)置。
# 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
其他參數(shù)設(shè)置:
? -g, --save:輸出所有設(shè)置,輸出格式為另一個(gè)stty可以恢復(fù)當(dāng)前設(shè)置的格式。
old_tty_settings=`stty -g`#保存初始的終端設(shè)置
stty "$old_tty_settings"#還原終端設(shè)置
stty cols 90#設(shè)置列寬為90
stty erase ^H#解決在SQLPLUS、FTP時(shí)無法使用backspace鍵
stty -echo#關(guān)閉回顯,默認(rèn)打開回顯stty echo
?詳細(xì)使用方法請見:man stty
? Have Fun!
轉(zhuǎn)載于:https://blog.51cto.com/alexatrebooting/1330946
總結(jié)
以上是生活随笔為你收集整理的使用SecureCRT时屏幕僵死的处理方法——Linux终端设置技巧的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: RHEL6上课笔记之background
- 下一篇: Java设计模式(二) 观察者模式