diff options
author | Masahisa Kojima | 2023-01-24 15:56:15 +0900 |
---|---|---|
committer | Heinrich Schuchardt | 2023-01-27 18:32:00 +0100 |
commit | 8dbd0a0f8e4c59c4fa705585ee2d552acdc5bdb2 (patch) | |
tree | 8dd3df55d1c632d7e3ca9e55cecb5b252a350383 /include/efi_loader.h | |
parent | 0d59085235589f47323d84b7e412d1b6acb10286 (diff) |
eficonfig: add vertical scroll support
The current eficonfig menu does not support vertical scroll,
so it can not display the menu entries greater than
the console row size.
This commit add the vertial scroll support.
The console size is retrieved by
SIMPLE_TEXT_OUTPUT_PROTOCOL.QueryMode() service, then
calculates the row size for menu entry by subtracting
menu header and description row size from the console row size.
"start" and "end" are added in the efimenu structure.
"start" keeps the menu entry index at the top, "end" keeps
the bottom menu entry index. item_data_print() menu function
only draws the menu entry between "start" and "end".
This commit also fixes the issue that "Save" and "Quit"
entries can be moved by BKEY_PLUS in change boot order menu.
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index f9e427f0905..4560b0d04cb 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -328,6 +328,7 @@ extern const efi_guid_t efi_esrt_guid; extern const efi_guid_t smbios_guid; /*GUID of console */ extern const efi_guid_t efi_guid_text_input_protocol; +extern const efi_guid_t efi_guid_text_output_protocol; extern char __efi_runtime_start[], __efi_runtime_stop[]; extern char __efi_runtime_rel_start[], __efi_runtime_rel_stop[]; |