From 5ba7af2cf6e93c1e8b3ab22d7851db7bfa02fd21 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 8 Dec 2022 17:50:44 +0200 Subject: [PATCH] TTY: Treat tabs as spaces --- kernel/arch/i386/tty.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/arch/i386/tty.cpp b/kernel/arch/i386/tty.cpp index 87c7addd..4b3d65ec 100644 --- a/kernel/arch/i386/tty.cpp +++ b/kernel/arch/i386/tty.cpp @@ -96,6 +96,9 @@ void terminal_set_cursor_pos(int x, int y) void terminal_putchar(char c) { + if (c == '\t') + c = ' '; + if (c == '\n') { terminal_col = 0;