1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 07:07:36 +00:00

Add basic support for ANSI color escape sequences.

This commit is contained in:
Andreas Kling 2018-10-28 00:51:27 +02:00
parent 8289a5c93c
commit dd3244137e
3 changed files with 112 additions and 12 deletions

View file

@ -35,17 +35,7 @@ system_t system;
void banner()
{
kprintf("\n");
vga_set_attr(0x0a);
kprintf(" _____ _ _ \n");
vga_set_attr(0x0b);
kprintf("| __|___ ___| |_ ___ ___| |_ \n");
vga_set_attr(0x0c);
kprintf("| | | -_| _| . | -_| _| _|\n");
vga_set_attr(0x0d);
kprintf("|_____|___|_| |___|___|_| |_| \n");
vga_set_attr(0x07);
kprintf("\n");
kprintf("\n\033[33;1mWelcome to \033[36;1mSerenity OS!\033[0m\n\n");
}
static byte parseHexDigit(char nibble)