exectos/xtldr/shell.c
Rafal Kupiec 1f9b03b11b
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 29s
Builds / ExectOS (i686) (push) Successful in 28s
Color shell prompt
2024-01-07 14:04:57 +01:00

37 lines
740 B
C

/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtldr/shell.c
* DESCRIPTION: XT Boot Loader shell
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#include <xtldr.h>
XTCDECL
VOID
BlStartLoaderShell()
{
/* 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> ");
/* Reset standard shell colors */
BlSetConsoleAttributes(EFI_TEXT_BGCOLOR_BLACK | EFI_TEXT_FGCOLOR_LIGHTGRAY);
}