From cd03f4fbca3cc708989cac472f29df9b7b78013b Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Sun, 7 Jan 2024 12:01:23 +0100 Subject: [PATCH] Print prompt --- xtldr/shell.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xtldr/shell.c b/xtldr/shell.c index 167165a..5f51cd4 100644 --- a/xtldr/shell.c +++ b/xtldr/shell.c @@ -13,4 +13,12 @@ XTCDECL VOID BlStartLoaderShell() { + /* Clear screen and enable cursor */ + BlSetConsoleAttributes(EFI_TEXT_BGCOLOR_BLACK | EFI_TEXT_FGCOLOR_LIGHTGRAY); + BlClearConsoleScreen(); + BlEnableConsoleCursor(); + + /* Print prompt */ + BlConsolePrint(L"XTLDR> "); + for(;;); }