diff options
author | Joursoir <chat@joursoir.net> | 2021-11-29 16:22:14 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-11-29 16:22:14 +0300 |
commit | e18f5bd2646f1a8158740d8d7d87bd2b34562cca (patch) | |
tree | c9b7ee5dee7617531910c3c6a960c2acab196237 /Library/UefiShellUfmCommandLib | |
parent | 16c83b50e88a3f4bb344a918c4ebe4cae5a38e31 (diff) | |
download | ufm-e18f5bd2646f1a8158740d8d7d87bd2b34562cca.tar.gz ufm-e18f5bd2646f1a8158740d8d7d87bd2b34562cca.tar.bz2 ufm-e18f5bd2646f1a8158740d8d7d87bd2b34562cca.zip |
panel: make update_marked_info()
Diffstat (limited to 'Library/UefiShellUfmCommandLib')
-rw-r--r-- | Library/UefiShellUfmCommandLib/panel.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/panel.c b/Library/UefiShellUfmCommandLib/panel.c index a828689..ee80e81 100644 --- a/Library/UefiShellUfmCommandLib/panel.c +++ b/Library/UefiShellUfmCommandLib/panel.c @@ -61,6 +61,17 @@ STATIC VOID set_cwd(struct panel_ctx *p, CONST CHAR16 *path) wrefresh(p->wcwd); } +STATIC VOID update_marked_info(struct panel_ctx *p) +{ + mvwhline(p->wmarked, 0, 0, BOXDRAW_HORIZONTAL, p->wmarked->width); + if(p->marked) { + wattrset(p->wmarked, EFI_TEXT_ATTR(EFI_WHITE, EFI_BLACK)); + mvwprintf(p->wmarked, 0, 0, L" Files: %d ", p->marked); + wattroff(p->wmarked); + } + wrefresh(p->wmarked); +} + struct panel_ctx *panel_alloc(struct screen *scr, CONST CHAR16 *path, INT32 cols, INT32 lines, INT32 x, INT32 y) { |