]> git.ipfire.org Git - thirdparty/u-boot.git/commit
video: Support showing a cursor
authorSimon Glass <sjg@chromium.org>
Mon, 2 Oct 2023 01:13:21 +0000 (19:13 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 19:43:55 +0000 (15:43 -0400)
commit37db20d0a64132a7ae3d0223de6b93167d60bea4
treebf99fa1818795e3cc56c1eb9fb72c8a333161569
parent617d7b545b6fa555f47944a10b1a1b261491e3b9
video: Support showing a cursor

Add rudimentary support for displaying a cursor on a vidconsole. This
helps the user to see where text is being entered.

The implementation so far is very simple: the cursor is just a vertical
bar of fixed width and cannot be erased. To erase the cursor, the text
must be redrawn over it.

This is good enough for expo but will need enhancement to be useful for
the command-line console. For example, it could save and restore the
area behind the cursor.

For now, enable this only for expo, to reduce code size.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/console_core.c
drivers/video/console_normal.c
drivers/video/console_truetype.c
drivers/video/vidconsole-uclass.c
drivers/video/vidconsole_internal.h
include/video_console.h