xshell或putty之类的连接到centos 6下使用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'

或者命令直接写入

cat >>/etc/screenrc<<EOF
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E&gt;
# (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'
EOF
本站由企鹅小屋强力驱动
Last modification:September 15, 2019
如果觉得我的文章对你有用,请随意赞赏