From c8a195e1eb19d346c03c1dfa6ed66c6215caefa2 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 2 Feb 2015 21:48:38 -0500 Subject: Refactor, begin writing a PS/2 driver --- drivers/tty.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/tty.c') 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(); } -- cgit v1.1