]> granicus.if.org Git - nethack/commitdiff
win32tty: fix extended commands
authornethack.allison <nethack.allison>
Mon, 27 Oct 2003 01:14:02 +0000 (01:14 +0000)
committernethack.allison <nethack.allison>
Mon, 27 Oct 2003 01:14:02 +0000 (01:14 +0000)
The autocompletion was working, but you couldn't tell
because the text was overwritten with blanks.  This was
a recent glitch created during fix for other cursor problems.

sys/winnt/nttty.c

index 1f033b48d28af43e4a16f39635e12789b2510bbd..4035797b90e40b99f733be16e4d74b86840a7d17 100644 (file)
@@ -59,7 +59,7 @@ int GUILaunched;
 static BOOL FDECL(CtrlHandler, (DWORD));
 
 #ifdef PORT_DEBUG
-static boolean display_cursor_info = TRUE;
+static boolean display_cursor_info = FALSE;
 #endif
 
 extern boolean getreturn_enabled;      /* from sys/share/pcsys.c */
@@ -429,11 +429,6 @@ char ch;
                        break;
            case '\b':
                        cursor.X--;
-                       ch = ' ';
-                       WriteConsoleOutputAttribute(hConOut,&attr,1,
-                                                       cursor,&acount);
-                       WriteConsoleOutputCharacter(hConOut,&ch,1,
-                                                       cursor,&ccount);
                        break;
            default:
                        WriteConsoleOutputAttribute(hConOut,&attr,1,