diff --git a/drivers/vga.c b/drivers/vga.c index c53692b..2138ab7 100644 --- a/drivers/vga.c +++ b/drivers/vga.c @@ -50,7 +50,7 @@ void set_cursor_pos(unsigned int col, unsigned int row) { void clear_screen() { for( int c = 0; c < MAX_COLS; c++ ) for( int r = 0; r < MAX_ROWS; r++ ) - writechar(0x20, c, r, 0xf0); + writechar(0x20, c, r, 0x0f); } /* diff --git a/kernel/kernel.c b/kernel/kernel.c index 8ea9e47..13aacf8 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -6,11 +6,13 @@ void main() { vga_init(); // Initialize the screen first // i.e. clear the screen et cetera. + set_cursor_pos(28, 2); + print("eOS Version 0.1 2021", 0x0f); + + char* strbuf = "Hello"; char* str2 = "World!"; strbuf = strcat(strbuf, str2); - println(strbuf, 0xf0); - - set_cursor_pos(28, 2); - print("eOS Version 0.1 2021", 0xf0); + set_cursor_pos(0, 0); + println(strbuf, 0x0f); }