Browse Source

\b character

master
Mathieu Serandour 6 months ago
parent
commit
aa798ca507
  1. 8
      kernel/drivers/terminal/terminal.c

8
kernel/drivers/terminal/terminal.c

@ -349,6 +349,14 @@ static void emplace_char(driver_t* this, char c) {
case '\r':
d->cur_col = 0;
break;
case '\b':
if(d->cur_col > 0)
d->cur_col--;
else if(d->cur_line > 0) {
d->cur_line--;
d->cur_col = d->ncols-1;
}
break;
}
}

Loading…
Cancel
Save