summaryrefslogtreecommitdiff
path: root/arch/i386/boot
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/boot')
-rw-r--r--arch/i386/boot/tty.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/i386/boot/tty.c b/arch/i386/boot/tty.c
index 2c75760..aa77736 100644
--- a/arch/i386/boot/tty.c
+++ b/arch/i386/boot/tty.c
@@ -54,6 +54,16 @@ void tty_putchar(char c) {
terminal_scroll();
}
break;
+ case '\t':
+ terminal_column += 4;
+ if (++terminal_column == VGA_WIDTH) {
+ terminal_column = 4;
+ if (++terminal_row == VGA_HEIGHT) {
+ terminal_row--;
+ terminal_scroll();
+ }
+ }
+ break;
default:
tty_putentryat(uc, terminal_color, terminal_column, terminal_row);
if (++terminal_column == VGA_WIDTH) {