vt: unicode fallback for scrollback
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 27 Jun 2018 03:56:42 +0000 (23:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:38:12 +0000 (21:38 +0900)
commit708d0bff9121506db08adb73845a3c70312fadf3
tree9dc1638515bad93b55a519ad6b0a5262521f4617
parentd21b0be246bf3bbf569e6e239f56abb529c7154e
vt: unicode fallback for scrollback

There is currently no provision for scrollback content in the core code,
leaving that to backend video drivers where this can be highly optimized.
There is currently no common method for those drivers to tell the core
what part of the scrollback is actually displayed and what size the
scrollback buffer is either. Because of that, the unicode screen buffer
has no provision for any scrollback.

At least we can provide backtranslated glyph values when the scrollback
is active which should be plenty good enough for now.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Dave Mielke <Dave@mielke.cc>
Acked-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vc_screen.c
drivers/tty/vt/vt.c
include/linux/selection.h