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