Color shell prompt
This commit is contained in:
parent
2d544e5993
commit
1f9b03b11b
@ -358,6 +358,10 @@ EFI_STATUS
|
||||
BlpParseConfigFile(IN CONST PCHAR RawConfig,
|
||||
OUT PLIST_ENTRY Configuration);
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BlpPrintShellPrompt();
|
||||
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
BlpReadConfigFile(IN CONST PWCHAR ConfigDirectory,
|
||||
|
@ -13,12 +13,24 @@ XTCDECL
|
||||
VOID
|
||||
BlStartLoaderShell()
|
||||
{
|
||||
/* Clear screen and enable cursor */
|
||||
BlSetConsoleAttributes(EFI_TEXT_BGCOLOR_BLACK | EFI_TEXT_FGCOLOR_LIGHTGRAY);
|
||||
BlClearConsoleScreen();
|
||||
BlEnableConsoleCursor();
|
||||
/* Initialize console */
|
||||
BlInitializeConsole();
|
||||
|
||||
/* Print prompt */
|
||||
BlpPrintShellPrompt();
|
||||
for(;;);
|
||||
}
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BlpPrintShellPrompt()
|
||||
{
|
||||
/* Set prompt color */
|
||||
BlSetConsoleAttributes(EFI_TEXT_BGCOLOR_BLACK | EFI_TEXT_FGCOLOR_YELLOW);
|
||||
|
||||
/* Print prompt */
|
||||
BlConsolePrint(L"XTLDR> ");
|
||||
for(;;);
|
||||
|
||||
/* Reset standard shell colors */
|
||||
BlSetConsoleAttributes(EFI_TEXT_BGCOLOR_BLACK | EFI_TEXT_FGCOLOR_LIGHTGRAY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user