如何清除屏幕命令中的回滚? [英] How to clear the scrollback in the screen command?

查看:470
本文介绍了如何清除屏幕命令中的回滚?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用屏幕命令在Linux中的命令行多任务,我将我的滚动缓冲区长度设置为非常大的值。是否有一个组合键来清除特定标签的缓冲区,当我不希望它停留在那里?

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 buffer for a certain tab when I don't want it sitting there anymore?

推荐答案

a href =http://osdir.com/ml/gnu.screen.user/2006-01/msg00029.html =nofollow noreferrer>此主题有以下建议:

This thread has the following suggestion:


在要删除的回滚窗口中,将回滚设置为零,然后
将其返回到其正常值(在
case,15000)。

In the window whose scrollback you want to delete, set the scrollback to zero, then return it to its normal value (in your case, 15000).

如果需要,您可以将此绑定到
键:

If you want, you can bind this to a key:

bind / evalscrollback 0scrollback 15000

bind / eval "scrollback 0" "scrollback 15000"

/ code>命令,在键入 Ca:后。
HTH。

You can issue the scrollback 0 command from the session as well, after typing C-a :. HTH.

这篇关于如何清除屏幕命令中的回滚?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆