]> git.baikalelectronics.ru Git - uboot.git/commit
video/console: Implement relative cursor movement ANSI handling
authorAndre Przywara <andre.przywara@arm.com>
Sat, 23 Mar 2019 01:29:57 +0000 (01:29 +0000)
committerAnatolij Gustschin <agust@denx.de>
Sun, 14 Apr 2019 12:18:47 +0000 (14:18 +0200)
commit146b4b4f8175a7257d979e570257bbb5c6701dad
tree64a3de93efcbee8c3db29c443a9154fb9ad8b1e8
parenteb65e09dd8eb677b95e7b99bfd0859ddee45a3ca
video/console: Implement relative cursor movement ANSI handling

The ANSI terminal escapce sequence standard defines relative cursor
movement commands (ESC [ A-F). So far the DM_VIDEO console code was
ignoring them.

Interpret those sequences and move the cursor by the requested amount of
rows or columns in the right direction. This brings the code on par with
the legacy video console driver (cfb_console).

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/vidconsole-uclass.c