From b210dc896533e2a8826c69c6598c8d9b45ac576c Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sat, 23 Aug 2003 14:49:12 +0000 Subject: [PATCH] nttty A recent output mode change was causing the \n and \r characters to be visible on the display. --- sys/winnt/nttty.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)); -- 2.40.0