aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-11-29 16:22:14 +0300
committerJoursoir <chat@joursoir.net>2021-11-29 16:22:14 +0300
commite18f5bd2646f1a8158740d8d7d87bd2b34562cca (patch)
treec9b7ee5dee7617531910c3c6a960c2acab196237
parent16c83b50e88a3f4bb344a918c4ebe4cae5a38e31 (diff)
downloadufm-e18f5bd2646f1a8158740d8d7d87bd2b34562cca.tar.gz
ufm-e18f5bd2646f1a8158740d8d7d87bd2b34562cca.tar.bz2
ufm-e18f5bd2646f1a8158740d8d7d87bd2b34562cca.zip
panel: make update_marked_info()
-rw-r--r--Library/UefiShellUfmCommandLib/panel.c11
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)
{