fixed putchar to convert LF -> CR/LF on serial output
[retrocrawl] / src / amiga / libc / stdio.c
index 45e8aec..c404a52 100644 (file)
@@ -8,6 +8,9 @@ static int intern_printf(char *buf, size_t sz, const char *fmt, va_list ap);
 
 int putchar(int c)
 {
+       if(c == '\n') {
+               ser_putchar('\r');
+       }
        ser_putchar(c);
        return c;
 }