support \r

This commit is contained in:
starnakin 2024-09-07 01:59:31 +02:00
parent a33a1c96fa
commit 2cbe9c9492

View File

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