aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dos/conio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dos/conio.c b/dos/conio.c
index 3d562afd..e4cf3ed2 100644
--- a/dos/conio.c
+++ b/dos/conio.c
@@ -22,6 +22,8 @@
int putchar(int ch)
{
+ if ( ch == '\n' )
+ putchar('\r');
asm("movb $0x02,%%ah ; int $0x21" : : "d" (ch));
return ch;
}