On Sa, 2014-05-31 at 00:26 +0200, Jakub Wilk wrote:
* Manuel Schölling [off-list ref], 2014-05-30, 15:27:
quoted
Add a scrollback buffers for each VGA console. The benefit is that the
scrollback history is not flushed when switching between consoles but
is persistent.
Some people rely on this scrollback flushing as a security feature. Is
there even another way to clear the scrollback, than to switch to
another vt and then back again?
Thanks for raising this security issue! Maybe we should add something
like VT_FLUSH_SCROLLBACK to vt_ioctl()? [1]
I'm open for better ways to flush the scrollback history.
[1] http://lxr.free-electrons.com/source/drivers/tty/vt/vt_ioctl.c#L334
Debian ships this:
http://manpages.debian.org/cgi-bin/man.cgi?query=clear_console
https://sources.debian.net/src/bash/4.2%2Bdfsg-0.1/debian/clear_console.c