From: Pasi Kallinen Date: Sun, 15 Oct 2017 18:48:42 +0000 (+0300) Subject: X11: Put yn prompts into message history X-Git-Tag: NetHack-3.6.1_RC01~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1618fe6ddc50a0e658976dd4d4ce6eb0271f4ed;p=nethack X11: Put yn prompts into message history --- diff --git a/win/X11/winX.c b/win/X11/winX.c index 8d097a791..c885e3d82 100644 --- a/win/X11/winX.c +++ b/win/X11/winX.c @@ -2081,6 +2081,8 @@ char def; /* default response if user hits or */ nh_XtPopdown(yn_popup); /* this removes the event grab */ } + pline("%s%c", buf, (yn_return != '\033') ? yn_return : '\0'); + return yn_return; }