]> granicus.if.org Git - nethack/commitdiff
X11: Put yn prompts into message history
authorPasi Kallinen <paxed@alt.org>
Sun, 15 Oct 2017 18:48:42 +0000 (21:48 +0300)
committerPasi Kallinen <paxed@alt.org>
Sun, 15 Oct 2017 18:48:42 +0000 (21:48 +0300)
win/X11/winX.c

index 8d097a791379f2d6ca24ff077f412ed2cce0b76d..c885e3d82b97463e47f26a685f6876ac3e1b18e0 100644 (file)
@@ -2081,6 +2081,8 @@ char def;            /* default response if user hits <space> or <return> */
         nh_XtPopdown(yn_popup); /* this removes the event grab */
     }
 
+    pline("%s%c", buf, (yn_return != '\033') ? yn_return : '\0');
+
     return yn_return;
 }