diff options
author | Tom Rini <trini@konsulko.com> | 2018-11-26 15:52:51 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-11-26 15:52:51 -0500 |
commit | 430c166bcedd22e0ce93ce298747275f814b172f (patch) | |
tree | be857845439299f4b877034bd9255593aeccf943 /drivers/video/vidconsole-uclass.c | |
parent | c06088b3601118485ae333efb27363383626858d (diff) | |
parent | 118f020d9a6d84b52cd533cfe5b02feae7e5bdde (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-video
Diffstat (limited to 'drivers/video/vidconsole-uclass.c')
-rw-r--r-- | drivers/video/vidconsole-uclass.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index d7568bc79a..2ca19d4049 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -272,6 +272,14 @@ static void vidconsole_escape_char(struct udevice *dev, char ch) s++; /* ; */ s = parsenum(s, &col); + /* + * Video origin is [0, 0], terminal origin is [1, 1]. + */ + if (row) + --row; + if (col) + --col; + set_cursor_position(priv, row, col); break; |