TTY: Treat tabs as spaces

This commit is contained in:
Bananymous 2022-12-08 17:50:44 +02:00
parent e998615253
commit 5ba7af2cf6
1 changed files with 3 additions and 0 deletions

View File

@ -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;