]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: video: correctly set the cursor position
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 10 Nov 2018 18:55:48 +0000 (19:55 +0100)
committerAnatolij Gustschin <agust@denx.de>
Sat, 17 Nov 2018 10:35:39 +0000 (11:35 +0100)
commit118f020d9a6d84b52cd533cfe5b02feae7e5bdde
tree892af3a970d4d1449a78539945d9aea449cca600
parent1d6edcbfed2af33c748f2beb399810a0441888da
dm: video: correctly set the cursor position

The terminal escape sequence ESC [ <x> ; <y> H is used to set the cursor
position. According to the ECMA 48 standard the upper left corner in the
escape sequences is [1, 1]. The video uclass uses [0, 0] as upper left
corner.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/vidconsole-uclass.c
test/dm/video.c