support \r
This commit is contained in:
parent
a33a1c96fa
commit
2cbe9c9492
@ -51,10 +51,11 @@ void terminal_putentryat(char c, uint8_t color, size_t x, size_t y)
|
||||
|
||||
int terminal_putchar(char c)
|
||||
{
|
||||
if (c == '\n') {
|
||||
if (c == '\r')
|
||||
terminal_row = 0;
|
||||
else if (c == '\n') {
|
||||
terminal_column = 0;
|
||||
terminal_row++;
|
||||
return 1;
|
||||
}
|
||||
if (!isprint(c))
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user