aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-17 17:47:16 +0000
committerhpa <hpa>2004-12-17 17:47:16 +0000
commit8a684d6315e6ecd1bd0a60a5c9008fe584c2d47a (patch)
tree35333beb140cb99b59da5f09fab8da85ea6b7978 /dos
parentd0fe5d534f73c5be015e9a97bcea6261d2e86ce8 (diff)
downloadsyslinux-devel-8a684d6315e6ecd1bd0a60a5c9008fe584c2d47a.tar.gz
syslinux-devel-8a684d6315e6ecd1bd0a60a5c9008fe584c2d47a.tar.xz
syslinux-devel-8a684d6315e6ecd1bd0a60a5c9008fe584c2d47a.zip
Output \n as \r\n
Diffstat (limited to 'dos')
-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;
}