screen使用
修改srceenrc
后不重启screen生效
来自 How to reload screenrc without restarting screen?
Ctrl-a :source ~/.screenrc
.
开启自动刷新(altscreen
)
具体原理说明参考:
- GNU screen clearing on vim,less,etc. exit
- Using screen, commands like less and man don’t clear the screen afterwards,推荐,说的非常详细
这是非常必要的设置,默认应该是关闭,则在使用vim等应用之后,上一页会残留,比如下面这样:
开启altscreen on
之后,编辑完直接退出,不会有残留
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.