From a3fb7dc6de738d76829ec0179f2a1d6b5d2c44be Mon Sep 17 00:00:00 2001 From: Joursoir Date: Wed, 1 Dec 2021 20:09:08 +0300 Subject: panel: make panel_refresh() --- Library/UefiShellUfmCommandLib/panel.c | 8 ++++++++ Library/UefiShellUfmCommandLib/panel.h | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/Library/UefiShellUfmCommandLib/panel.c b/Library/UefiShellUfmCommandLib/panel.c index f1a9daf..e06a051 100644 --- a/Library/UefiShellUfmCommandLib/panel.c +++ b/Library/UefiShellUfmCommandLib/panel.c @@ -373,3 +373,11 @@ EFI_INPUT_KEY panel_getch(struct panel_ctx *p) return wgetch(p->wbg); } +VOID panel_refresh(struct panel_ctx *p) +{ + wrefresh(p->wbg); + wrefresh(p->wcwd); + wrefresh(p->wlist); + wrefresh(p->wfname); + wrefresh(p->wmarked); +} diff --git a/Library/UefiShellUfmCommandLib/panel.h b/Library/UefiShellUfmCommandLib/panel.h index 9006416..9adddd3 100644 --- a/Library/UefiShellUfmCommandLib/panel.h +++ b/Library/UefiShellUfmCommandLib/panel.h @@ -101,4 +101,13 @@ BOOLEAN panel_mark_file(struct panel_ctx *p, UINTN line); */ EFI_INPUT_KEY panel_getch(struct panel_ctx *p); +/* + * Does the output of panel to the terminal + * + * w: the panel on which to operate + * + * return: VOID +*/ +VOID panel_refresh(struct panel_ctx *p); + #endif /* UFM_PANEL_H */ -- cgit v1.2.3-18-g5258