printing: \n -> \n\r on printf

This commit is contained in:
Matheus
2026-04-01 17:40:08 -03:00
parent 924a93f7c6
commit e443319433
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -47,7 +47,10 @@ void term_write(char *str, size_t count) {
}
void term_putchar(char c) {
flanterm_write(term_ctx, &c, 1);
if (c == '\n')
flanterm_write(term_ctx, "\n\r", 2);
else
flanterm_write(term_ctx, &c, 1);
}
void term_getsize(size_t *x, size_t *y, size_t *fbx, size_t *fby) {