本文介绍了GNU屏幕:如何一次清除回滚和屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种方法来同时清除GNU屏幕中的回滚和可见屏幕.目前,我使用两个单独的绑定:
I'm looking for a way to clear both the scrollback and the visible screen at once in GNU screen. At the moment I use two separate bindings:
- C-a,C(这是清除可见文本的默认值)
-
bind _ eval "scrollback 0" "scrollback 15000"
(清除回滚)
- C-a, C (which is the default one for clearing the visible text)
bind _ eval "scrollback 0" "scrollback 15000"
(which clears the scrollback)
有人可以指出我如何做到两者合一吗?
Can someone point me to how I can do both in one?
推荐答案
结果您可以执行以下操作:
Turns out you can just do:
bind _ eval "clear" "scrollback 0" "scrollback 15000"
请注意,顺序似乎很重要:如果结尾处有清除",则似乎并不是每次都起作用(它总是清除屏幕,但并不总是清除滚动).
Note that the order seems to matter: it doesn't seem to work every time if you have the "clear" at the end (it always clears the screen, but not always the scrollback).
这篇关于GNU屏幕:如何一次清除回滚和屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!