]> granicus.if.org Git - nethack/commitdiff
Revert "curses port: accept return on Windows platform"
authornhmall <nhmall@nethack.org>
Sun, 18 Nov 2018 02:30:01 +0000 (21:30 -0500)
committernhmall <nhmall@nethack.org>
Sun, 18 Nov 2018 02:30:01 +0000 (21:30 -0500)
This reverts commit ac367ef4cc2cbad036964402ba541f869e6c8dd9.

win/curses/cursmesg.c

index 67986bbbbf239580e8ce1586f61dc15036c54297..9fc1d6442febd407be55ad03cbc8bf956851118f 100644 (file)
@@ -132,11 +132,6 @@ curses_message_win_puts(const char *message, boolean recursed)
     wrefresh(win);
 }
 
-#ifdef WIN32
-#define XTRA_RESP "\r"
-#else
-#define XTRA_RESP ""
-#endif
 
 int
 curses_block(boolean noscroll)
@@ -145,7 +140,8 @@ curses_block(boolean noscroll)
 {
     int height, width, ret;
     WINDOW *win = curses_get_nhwin(MESSAGE_WIN);
-    char *resp = " \n\033" XTRA_RESP; /* space, enter, esc */
+    char *resp = " \n\033"; /* space, enter, esc */
+
 
     curses_get_window_size(MESSAGE_WIN, &height, &width);
     curses_toggle_color_attr(win, MORECOLOR, NONE, ON);