When using vim or less in gnu screen, quitting vim or less leaves a lingering imprint

后端 未结 2 616
一生所求
一生所求 2021-02-07 20:05

On my new Ubuntu system, I start a screen session and edit a file in vim or view it in less. After I quit, the screen doesn\'t redraw itself, but simply scrolls up to show a com

2条回答
  •  长发绾君心
    2021-02-07 20:52

    screen's altscreen (alternate screen) feature is turned off by default.

    Add this to your .screenrc:

    altscreen on
    

    See: http://www.gnu.org/software/screen/manual/screen.html#Redisplay

提交回复
热议问题