diff options
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/tty.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/i386/kernel/tty.c b/arch/i386/kernel/tty.c index 1e2e6b5..d2bba53 100644 --- a/arch/i386/kernel/tty.c +++ b/arch/i386/kernel/tty.c @@ -43,10 +43,11 @@ void terminal_scroll(void) { } void tty_putchar(char c) { - unsigned char uc; - - uc = c; + unsigned char uc = c; switch (uc) { + case '\r': + terminal_column = 0; + break; case '\n': terminal_column = 0; if (++terminal_row == VGA_HEIGHT) { |