Kernel: TTY now handles '\b'

This commit is contained in:
Bananymous 2022-12-07 04:35:02 +02:00
parent 4202c999fa
commit 998184e288
1 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,12 @@ void terminal_putchar(char c)
terminal_col = 0;
terminal_row++;
}
else if (c == '\b')
{
if (terminal_col > 0)
terminal_col--;
terminal_putentryat(' ', terminal_color, terminal_col, terminal_row);
}
else
{
terminal_putentryat(c, terminal_color, terminal_col, terminal_row);