]> granicus.if.org Git - nethack/commitdiff
nethackw clear after getlin
authornhmall <nhmall@nethack.org>
Tue, 24 Apr 2018 12:15:36 +0000 (08:15 -0400)
committernhmall <nhmall@nethack.org>
Tue, 24 Apr 2018 12:15:36 +0000 (08:15 -0400)
Alex wrote: in nethackw, getlin clears message
window, so any unread messages are scrolled off the screen without
"--more--" prompt. If vary_msgcount is set to 1 and "potion shatters", it
is not easy to see the effect to name the potion correctly.

win/win32/mswproc.c

index 30b1f5b2b517740a25cf609155726d8996211392..a1af46ed297bba6195b52884a70a720b44e48381 100644 (file)
@@ -1654,7 +1654,7 @@ mswin_getlin(const char *question, char *input)
         SendMessage(mswin_hwnd_from_winid(WIN_MESSAGE), WM_MSNH_COMMAND,
                     (WPARAM) MSNH_MSG_CARET, (LPARAM) &createcaret);
 
-        mswin_clear_nhwindow(WIN_MESSAGE);
+        /* mswin_clear_nhwindow(WIN_MESSAGE); */
         mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, question, 0);
         mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, " ", 1);
 #ifdef EDIT_GETLIN