blob: 50a7d65025fec5237ab0df0b2ff772e989d0ec33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
void terminal_initialize()
{
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);
}
}
}
|