aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty.c')
-rw-r--r--drivers/tty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/tty.c b/drivers/tty.c
index c2be189..6668be7 100644
--- a/drivers/tty.c
+++ b/drivers/tty.c
@@ -65,14 +65,20 @@ void tty_putchar(char ch)
{
term_x = 0;
if(++term_y == VGA_HEIGHT)
+ {
+ tty_clear();
term_y = 0;
+ }
}
}
else
{
term_x = 0;
if(++term_y == VGA_HEIGHT)
+ {
+ tty_clear();
term_y = 0;
+ }
}
update_cursor();
}