This commit is contained in:
Julian Barathieu 2019-05-18 22:58:30 +02:00
parent 890cc6e615
commit 923703edee
2 changed files with 6 additions and 5 deletions

View File

@ -43,7 +43,8 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
IoEnableCursor();
IoUpdateCursor(0, 0);
KernLog("%c%c%c OS/K\n\n", 219, 219, 219);
KernLog("%C%c%c%c OS/K%C\n\n", VGA_COLOR_WHITE,
219, 219, 219, VGA_COLOR_LIGHT_GREY);
// Sanity checks
BtDoSanityChecks(mbMagic);
@ -63,7 +64,7 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
IoEnableKeyb();
MmActivatePageHandler();
KernLog("%CThis %Cis %Ca %CColor %Ctest%C...%C\n",
KernLog("\n%CThis %Cis %Ca %CColor %Ctest%C...%C\n",
VGA_COLOR_LIGHT_BLUE,
VGA_COLOR_BROWN,
VGA_COLOR_MAGENTA,

View File

@ -71,7 +71,7 @@ void KeStartShell(void)
memzero(argvbuf, ARG_MAX * 2);
shargv = (char **)argvbuf;
KernLog("\n%Cshell> ", shcol);
KernLog("\n%Cshell> %C", VGA_COLOR_WHITE, shcol);
BFlushBuf(BStdOut);
while ((rc = BGetFromBuf(BStdIn, &ch)) == EOK || rc == EENDF) {
@ -84,7 +84,7 @@ void KeStartShell(void)
memzero(cmdbuf, CMDBUFSIZE);
BFlushBuf(BStdIn);
KernLog("%Cshell> ", shcol);
KernLog("%Cshell> %C", VGA_COLOR_WHITE, shcol);
BFlushBuf(BStdOut);
}
else break;
@ -135,7 +135,7 @@ void KeStartShell(void)
ExecuteCommand(cmdbuf);
memzero(cmdbuf, CMDBUFSIZE);
KernLog("%Cshell> ", shcol);
KernLog("%Cshell> %C", VGA_COLOR_WHITE, shcol);
BFlushBuf(BStdIn);
BFlushBuf(BStdOut);
break;