Refactor & darkmode

pull/29/head
E. Almqvist 3 years ago
parent d65c73fc9e
commit 02faf041ff
  1. 2
      drivers/vga.c
  2. 10
      kernel/kernel.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);
}
/*

@ -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);
}

Loading…
Cancel
Save