diff options
| author | Peter Jones <pjones@redhat.com> | 2021-09-16 16:46:55 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-10-12 10:40:13 -0400 |
| commit | 35ca373d20fbeeb80aff2202077d614bc89575c0 (patch) | |
| tree | 5745d9e36cc713fe06577180fadf154ec9896f8b /include/console.h | |
| parent | 1872c929cc3a466c75336307901e67917bcc46bc (diff) | |
| download | efi-boot-shim-35ca373d20fbeeb80aff2202077d614bc89575c0.tar.gz efi-boot-shim-35ca373d20fbeeb80aff2202077d614bc89575c0.zip | |
console: add a clear_screen() primitive
Several places in e.g. MokManager and our console library use
ST->ConOut->ClearScreen directly, without checking for the existence of
a console output device.
This patch adds function to our console library to do that correctly,
instead of using the bug-prone ad hoc implementation everywhere.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include/console.h')
| -rw-r--r-- | include/console.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index c832b20e..0c4a5137 100644 --- a/include/console.h +++ b/include/console.h @@ -50,6 +50,9 @@ void console_reset(void); void console_mode_handle(void); +void +clear_screen(void); + #define NOSEL 0x7fffffff typedef struct _EFI_CONSOLE_CONTROL_PROTOCOL EFI_CONSOLE_CONTROL_PROTOCOL; |
