VPS侦探论坛

 找回密码
 注册
查看: 6064|回复: 0

[总结] CentOS 6下禁止运行screen 或建立新窗口时更改窗口尺寸

[复制链接]
发表于 2014-10-15 17:15:54 | 显示全部楼层 |阅读模式

xshell或putty之类的连接到centos 6下使用screen时会改变窗口的尺寸,非常烦人,可以通过如下方法修改使其不更改窗口尺寸。
编辑/etc/screenrc或~/.screenrc 加入下面的代码
  1. # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
  2. # (This fixes the "Aborted because of window size change" konsole symptoms found
  3. #  in bug #134198)
  4. termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
复制代码
下面命令直接写入
  1. cat >>/etc/screenrc<<EOF
  2. # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E&gt;
  3. # (This fixes the "Aborted because of window size change" konsole symptoms found
  4. #  in bug #134198)
  5. termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
  6. EOF
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-19 09:17 , Processed in 0.025800 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表