colors
This commit is contained in:
parent
890cc6e615
commit
923703edee
|
@ -43,7 +43,8 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
|
||||||
IoEnableCursor();
|
IoEnableCursor();
|
||||||
IoUpdateCursor(0, 0);
|
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
|
// Sanity checks
|
||||||
BtDoSanityChecks(mbMagic);
|
BtDoSanityChecks(mbMagic);
|
||||||
|
@ -63,7 +64,7 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
|
||||||
IoEnableKeyb();
|
IoEnableKeyb();
|
||||||
MmActivatePageHandler();
|
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_LIGHT_BLUE,
|
||||||
VGA_COLOR_BROWN,
|
VGA_COLOR_BROWN,
|
||||||
VGA_COLOR_MAGENTA,
|
VGA_COLOR_MAGENTA,
|
||||||
|
|
|
@ -71,7 +71,7 @@ void KeStartShell(void)
|
||||||
memzero(argvbuf, ARG_MAX * 2);
|
memzero(argvbuf, ARG_MAX * 2);
|
||||||
shargv = (char **)argvbuf;
|
shargv = (char **)argvbuf;
|
||||||
|
|
||||||
KernLog("\n%Cshell> ", shcol);
|
KernLog("\n%Cshell> %C", VGA_COLOR_WHITE, shcol);
|
||||||
BFlushBuf(BStdOut);
|
BFlushBuf(BStdOut);
|
||||||
|
|
||||||
while ((rc = BGetFromBuf(BStdIn, &ch)) == EOK || rc == EENDF) {
|
while ((rc = BGetFromBuf(BStdIn, &ch)) == EOK || rc == EENDF) {
|
||||||
|
@ -84,7 +84,7 @@ void KeStartShell(void)
|
||||||
|
|
||||||
memzero(cmdbuf, CMDBUFSIZE);
|
memzero(cmdbuf, CMDBUFSIZE);
|
||||||
BFlushBuf(BStdIn);
|
BFlushBuf(BStdIn);
|
||||||
KernLog("%Cshell> ", shcol);
|
KernLog("%Cshell> %C", VGA_COLOR_WHITE, shcol);
|
||||||
BFlushBuf(BStdOut);
|
BFlushBuf(BStdOut);
|
||||||
}
|
}
|
||||||
else break;
|
else break;
|
||||||
|
@ -135,7 +135,7 @@ void KeStartShell(void)
|
||||||
ExecuteCommand(cmdbuf);
|
ExecuteCommand(cmdbuf);
|
||||||
|
|
||||||
memzero(cmdbuf, CMDBUFSIZE);
|
memzero(cmdbuf, CMDBUFSIZE);
|
||||||
KernLog("%Cshell> ", shcol);
|
KernLog("%Cshell> %C", VGA_COLOR_WHITE, shcol);
|
||||||
BFlushBuf(BStdIn);
|
BFlushBuf(BStdIn);
|
||||||
BFlushBuf(BStdOut);
|
BFlushBuf(BStdOut);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue