Correctly emit \r\n when a \n is written to the console, instead of \n\n...

Fixes: #198
This commit is contained in:
David Given 2019-06-17 23:31:16 +02:00
parent 0ecad6c860
commit c2f48772e9

View file

@ -12,8 +12,8 @@
void _sys_write_tty(char c) void _sys_write_tty(char c)
{ {
cpm_conout(c);
if (c == '\n') if (c == '\n')
cpm_conout('\r');
cpm_conout(c); cpm_conout(c);
} }