projects
/
retrocrawl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08dc7cf
)
fixed putchar to convert LF -> CR/LF on serial output
author
John Tsiombikas
<nuclear@member.fsf.org>
Sat, 4 Aug 2018 03:09:27 +0000
(06:09 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sat, 4 Aug 2018 03:09:27 +0000
(06:09 +0300)
src/amiga/libc/stdio.c
patch
|
blob
|
history
diff --git
a/src/amiga/libc/stdio.c
b/src/amiga/libc/stdio.c
index
45e8aec
..
c404a52
100644
(file)
--- a/
src/amiga/libc/stdio.c
+++ b/
src/amiga/libc/stdio.c
@@
-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;
}