阅读背景:

清除Linux虚拟控制台终端的scrollback缓冲区。

来源:互联网 

I'd like to clear the scrollback buffer on Linux console VTs programmatically. i.e. not just clear the current visible screen, but the entire scrollback buffer, too. I.e. everything that after a clear screen would still be visible with Alt-PgUp should be gone too. Anybody got an idea how to achieve that in nice code?I'd like to clear the scrollback buffer on Linu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: