gdt idt stuff
This commit is contained in:
@@ -57,6 +57,12 @@ void vga_initialize()
|
||||
|
||||
void vga_putchar(char c)
|
||||
{
|
||||
if (c == '\n') {
|
||||
terminal_row++;
|
||||
terminal_column = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
const size_t index = terminal_row * VGA_WIDTH + terminal_column;
|
||||
terminal_buffer[index] = vga_entry(c, terminal_color);
|
||||
if (++terminal_column == VGA_WIDTH) {
|
||||
|
||||
Reference in New Issue
Block a user