man 程序如何在接管整个屏幕后设法恢复以前的终端输出?它是否以某种方式涉及 ANSI 转义序列?
最佳答案
这是无处不在的 xterm 交替屏幕功能,大多数终端程序通过 terminfo smcup
和 rmcup
序列使用它。有关此功能的最新评论:
- How to Not Overwrite Previous Terminal Contents
- What mechanism allows ViM to temporarily overwrite the entire console?
(顺便说一下,man
程序通常是 "termcap" program )。
关于linux - 为什么 linux 联机帮助页程序不清除终端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31686037/