aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'Library/UefiShellUfmCommandLib/panel.c')
-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 6ee1939..f920ea1 100644
--- a/Library/UefiShellUfmCommandLib/panel.c
+++ b/Library/UefiShellUfmCommandLib/panel.c
@@ -276,6 +276,7 @@ VOID panel_release(struct panel_ctx *p)
FreePool(p);
}
+
BOOLEAN panel_move_cursor(struct panel_ctx *p, UINTN line)
{
UINTN oldline = p->curline;
@@ -335,6 +336,16 @@ BOOLEAN panel_cd_to(struct panel_ctx *p, CONST CHAR16 *path)
return TRUE;
}
+VOID panel_set_active(struct panel_ctx *p, BOOLEAN flag)
+{
+ if(flag == TRUE) {
+ HIGHLIGHT_LINE_AS_CURRENT(p, p->curline);
+ return;
+ }
+
+ UNHIGHLIGHT_LINE_AS_CURRENT(p, p->curline);
+}
+
BOOLEAN panel_mark_file(struct panel_ctx *p, UINTN line)
{
UINTN idx = line - 1;