diff options
author | Joursoir <chat@joursoir.net> | 2021-11-29 01:15:12 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-11-29 01:15:12 +0300 |
commit | fc34983b91dcababe019ca63721ea2bcd2ac1b6a (patch) | |
tree | 8d641a02dbf35e0ecaa5d03814ae4d1844b112bf /Library/UefiShellUfmCommandLib/panel.c | |
parent | 539b874b7617f0b5acc0eea5399609dabba15e2b (diff) | |
download | ufm-fc34983b91dcababe019ca63721ea2bcd2ac1b6a.tar.gz ufm-fc34983b91dcababe019ca63721ea2bcd2ac1b6a.tar.bz2 ufm-fc34983b91dcababe019ca63721ea2bcd2ac1b6a.zip |
panel: add macros for highlight
Diffstat (limited to 'Library/UefiShellUfmCommandLib/panel.c')
-rw-r--r-- | Library/UefiShellUfmCommandLib/panel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/panel.c b/Library/UefiShellUfmCommandLib/panel.c index d242df6..a828689 100644 --- a/Library/UefiShellUfmCommandLib/panel.c +++ b/Library/UefiShellUfmCommandLib/panel.c @@ -14,6 +14,15 @@ #define SIZE_COLS 7 #define MODIFYTIME_COLS 12 +#define HIGHLIGHT_LINE_AS_CURRENT(panel, line) \ + highlight_line(panel, line, -1, EFI_CYAN) +#define UNHIGHLIGHT_LINE_AS_CURRENT(panel, line) \ + highlight_line(panel, line, -1, EFI_BLACK) +#define HIGHLIGHT_LINE_AS_MARK(panel, line) \ + highlight_line(panel, line, EFI_YELLOW, -1) +#define UNHIGHLIGHT_LINE_AS_MARK(panel, line) \ + highlight_line(panel, line, EFI_LIGHTGRAY, -1) + STATIC VOID highlight_line(struct panel_ctx *p, UINTN line, INT32 fg, INT32 bg) { CHAR16 *str; |