blob: 79c56579093a3ca26c0202a3c5134c52676a8b8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
void terminal_initialize(void)
{
terminal_row=0;
terminal_column=0;
set_color(VGA_COLOR_LIGHT_GREY, VGA_COLOR_BLACK);
terminal_buffer=(uint16_t*) 0xB8000;
for(size_t y=0;y<VGA_HEIGHT;y++)
{
for(size_t x=0;x<VGA_WIDTH;x++)
{
const size_t index=y*VGA_WIDTH+x;
terminal_buffer[index]=vga_entry(' ', terminal_color);
}
}
}
|