From: nethack.allison Date: Sat, 23 Aug 2003 14:49:12 +0000 (+0000) Subject: nttty X-Git-Tag: MOVE2GIT~1835 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b210dc896533e2a8826c69c6598c8d9b45ac576c;p=nethack nttty A recent output mode change was causing the \n and \r characters to be visible on the display. --- diff --git a/sys/winnt/nttty.c b/sys/winnt/nttty.c index 292617881..3dca82969 100644 --- a/sys/winnt/nttty.c +++ b/sys/winnt/nttty.c @@ -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));