console: Add persistent scrollback buffers for all VGA consoles
authorManuel Schölling <manuel.schoelling@gmx.de>
Fri, 13 Jan 2017 20:07:57 +0000 (21:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:54:02 +0000 (11:54 +0100)
commitaabd31c421ddc730edf6d89c4ed3885e4fca5e30
tree793c32e81be9aa92e693f0ff0fe9cb465a15886f
parentbcd375f7f71f7106c97516bf5395149954ef8810
console: Add persistent scrollback buffers for all VGA consoles

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.
The buffers are allocated on demand when a new console is opened.

This breaks tools like clear_console that rely on flushing the
scrollback history by switching back and forth between consoles
which is why this feature is disabled by default.
Use the escape sequence \e[3J instead for flushing the buffer.

Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Reviewed-by: Andrey Utkin <andrey_utkin@fastmail.com>
Tested-by: Andrey Utkin <andrey_utkin@fastmail.com>
Tested-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/console/Kconfig
drivers/video/console/vgacon.c