diff options
author | Joursoir <chat@joursoir.net> | 2021-12-12 19:08:45 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-12-12 19:08:45 +0300 |
commit | 5799ec4a9263f6a9a43532bf7488db7b1b41636e (patch) | |
tree | 2317564cdca2ae347df046446f72f5a4c14ce2c4 /Library/UefiShellUfmCommandLib | |
parent | c29317767429d06f3885375605e78adc127be495 (diff) | |
download | ufm-5799ec4a9263f6a9a43532bf7488db7b1b41636e.tar.gz ufm-5799ec4a9263f6a9a43532bf7488db7b1b41636e.tar.bz2 ufm-5799ec4a9263f6a9a43532bf7488db7b1b41636e.zip |
panel: set current directory for shell
Diffstat (limited to 'Library/UefiShellUfmCommandLib')
-rw-r--r-- | Library/UefiShellUfmCommandLib/panel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/panel.c b/Library/UefiShellUfmCommandLib/panel.c index 328a7ef..2dde818 100644 --- a/Library/UefiShellUfmCommandLib/panel.c +++ b/Library/UefiShellUfmCommandLib/panel.c @@ -150,6 +150,7 @@ STATIC VOID set_cwd(struct panel_ctx *p, CONST CHAR16 *path) if(path) StrnCatGrow(&p->cwd, NULL, path, 0); + gEfiShellProtocol->SetCurDir(NULL, p->cwd); whline(p->wcwd, 0, 0, BOXDRAW_HORIZONTAL, p->wcwd->cur_attr, p->wcwd->width); wattrset(p->wcwd, EFI_TEXT_ATTR(EFI_WHITE, EFI_BLACK)); mvwprintf(p->wcwd, 0, 0, L" %s ", p->cwd ? p->cwd : L" "); |