dm: video: support more escape sequences
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 19 Sep 2018 19:31:48 +0000 (21:31 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 28 Sep 2018 16:25:39 +0000 (18:25 +0200)
commit662f381aad11246109b660a36b9028fd76714be0
tree762859eddc75af8e3e2d3bd7d3b6208769e0dc5c
parent5cb4860f3df83da9610baf0ac3a4f2836fdfa328
dm: video: support more escape sequences

The EFI subsystems needs to know the size of the terminal. If the
environment variable

stdout = serial,vidconsole

this size cannot be read from the video console. So the EFI subsystem
sends escape sequences to read the size. With this patch we get support
for the following escape sequences:

ESC "7" Save cursor position
ESC "8" Restore cursor position

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/video/vidconsole-uclass.c
include/video_console.h