From 873a103fb71d6b7b1993a64535a7fa150317ca3c Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 7 Feb 2015 10:08:34 -0500 Subject: refactor stdio --- drivers/tty.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/tty.c') diff --git a/drivers/tty.c b/drivers/tty.c index 6b83232..7bce7e7 100644 --- a/drivers/tty.c +++ b/drivers/tty.c @@ -1,4 +1,5 @@ #include +#include #include "io.h" #include "panic.h" #include "tty.h" @@ -34,6 +35,8 @@ void tty_init(void) } tty_set_color(VGA_MAKE_COLOR(VGA_LIGHT_GRAY, VGA_BLACK)); tty_clear(); + set_putchar(tty_putchar); + set_puts(tty_puts); } static void move_cursor(uint16_t cursor_idx) -- cgit v1.1