How to clear the scrollback in the screen command?

后端 未结 7 1039
陌清茗
陌清茗 2021-02-01 02:59

I use the screen command for command-line multitasking in Linux and I set my scrollback buffer length to a very large value. Is there a key combination to clear the

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-01 03:43

    I added the command "clear" as well to clean the current screen. N.B. You have to press enter to regain you prompt.

    bind '/' eval "clear" "scrollback 0" "scrollback 15000"
    

    Also add it to you ".screenrc" to make it permanent.

    N.B. I added single quotes around the slash to be sure it didn't interfere in my ".screenrc". May not be necessary.

提交回复
热议问题