linux - 如何清除 screen 命令中的回滚?

标签 linux command-line gnu-screen

我在 Linux 中使用 screen 命令进行命令行多任务处理,并将回滚缓冲区长度设置为一个非常大的值。当我不想让某个选项卡再坐在那里时,是否有组合键可以清除该选项卡的缓冲区?

最佳答案

This thread有以下建议:

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 / eval "scrollback 0" "scrollback 15000"

在键入 C-a : 后,您也可以从 session 中发出 scrollback 0 命令。 HTH.

关于linux - 如何清除 screen 命令中的回滚?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/113427/

相关文章:

php - 是否有来自 php 的记录器函数,还是应该使用 exec 编写?

c - fork 调用工作

command-line - 检测桌面何时显示在批处理文件中

datetime - 在 AWK 中转换日期

linux - 在每个 bash 创建一个命令后在 screen 上运行命令

linux - 脚本在手动运行时完全运行,但在从另一个脚本运行时会丢失命令

Linux 内核模块、配置和持久状态的概念

linux - 如何在 google colab 中启用拼写检查器(colab 在 linux 操作系统上运行)?

bash - 如何使用 "shell prompt"创建 CLI 程序?

bash - Shell 脚本启动 1 个具有多个窗口的 session