禁止Screen建立新窗口时更改窗口尺寸

admin 2022-01-13 PM 681℃ 0条

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'

RockyLinux/Centos8无法安装screen的解决方法:使用epel安装screen

1、安装epel
sudo yum install epel-release
2、安装screen
sudo yum install screen

阿里云EPEL源https://developer.aliyun.com/mirror/epel

Rocky Linux 9 安装

获取下载链接:
https://pkgs.org/download/screen
https://rhel.pkgs.org/9/epel-x86_64/screen-4.8.0-6.el9.x86_64.rpm.html

下载安装:
wget https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/s/screen-4.8.0-6.el9.x86_64.rpm
rpm -Uvh screen-4.8.0-6.el9.x86_64.rpm
标签: none

非特殊说明,本博所有文章均为博主原创。

评论啦~