mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
Virtual consoles kinda work!
We now make three VirtualConsoles at boot: tty0, tty1, and tty2. We launch an instance of /bin/sh in each one. You switch between them with Alt+1/2/3 How very very cool :^)
This commit is contained in:
parent
68739dc43e
commit
7a7956a595
24 changed files with 251 additions and 103 deletions
|
@ -31,16 +31,11 @@ void vga_clear()
|
|||
vga_clear_row(i);
|
||||
}
|
||||
|
||||
void vga_putch_at(byte row, byte column, byte ch)
|
||||
void vga_putch_at(byte row, byte column, byte ch, byte attr)
|
||||
{
|
||||
word cur = (row * 160) + (column * 2);
|
||||
vga_mem[cur] = ch;
|
||||
vga_mem[cur + 1] = current_attr;
|
||||
}
|
||||
|
||||
void vga_set_attr(BYTE attr)
|
||||
{
|
||||
current_attr = attr;
|
||||
vga_mem[cur + 1] = attr;
|
||||
}
|
||||
|
||||
byte vga_get_attr()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue