diff options
author | dzwdz | 2021-06-25 12:30:07 +0200 |
---|---|---|
committer | dzwdz | 2021-06-25 12:30:07 +0200 |
commit | 174cf436480efe690f72d64c9ecd16b7af4d1f0e (patch) | |
tree | e8a6634a566492f3e511a2dd8c68870a665ba7a1 /kernel/tty.c | |
parent | fde20f86f5be5a39fd3eadf95ba71761d173e0ce (diff) |
setting up the GDT
Diffstat (limited to 'kernel/tty.c')
-rw-r--r-- | kernel/tty.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/tty.c b/kernel/tty.c index 45de728..5c4c47d 100644 --- a/kernel/tty.c +++ b/kernel/tty.c @@ -30,3 +30,9 @@ void tty_write(const char *buf, size_t len) tty_putchar(buf[i]); } } + +void tty_clear() { + for (size_t i = 0; i < vga_len; i++) + vga[i].c = ' '; + vga_pos = 0; +} |