forked from Bananymous/banan-os
Kernel: TTY now handles '\b'
This commit is contained in:
parent
4202c999fa
commit
998184e288
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue