]> granicus.if.org Git - nethack/commitdiff
nttty
authornethack.allison <nethack.allison>
Sat, 23 Aug 2003 14:49:12 +0000 (14:49 +0000)
committernethack.allison <nethack.allison>
Sat, 23 Aug 2003 14:49:12 +0000 (14:49 +0000)
A recent output mode change was causing the
\n and \r characters to be visible on the display.

sys/winnt/nttty.c

index 292617881651b8ec43f20927279cdc283e8e14d5..3dca82969da82288eb091369afb22226e6a30e62 100644 (file)
@@ -418,6 +418,12 @@ char c;
 {
        DWORD count;
 
+       switch(c) {
+           case '\n':
+           case '\r':
+                   cmov(ttyDisplay->curx, ttyDisplay->cury);
+                   return;
+       }
        if (colorchange) {
                SetConsoleTextAttribute(hConOut,
                        (currentcolor | currenthilite | currentbackground));