CentOS 下禁止screen建立新窗口时更改窗口尺寸

Xshell或Putty之类的连接到Centos下使用screen时会改变窗口的尺寸,非常烦人,可以通过如下方法修改使其不更改窗口尺寸。

编辑/etc/screenrc或~/.screenrc 加入下面的代码

# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>  
# (This fixes the "Aborted because of window size change" konsole symptoms found  
#  in bug #134198) 
termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'

来源:http://www.linuxidc.com/Linux/2015-12/126193.htm

本文链接:https://jeff.xin/post/84.html

--EOF--

Comments

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。