]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9f08b538714dfe8eba87ef7244180775d43ea24
tree793c32e81be9aa92e693f0ff0fe9cb465a15886f
parentf0681c8fc9aa53688bd0894f29cef05d50fd02da
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