-/* NetHack 3.6 winX.c $NHDT-Date: 1454637315 2016/02/05 01:55:15 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.36 $ */
+/* NetHack 3.6 winX.c $NHDT-Date: 1454810422 2016/02/07 02:00:22 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.37 $ */
/* Copyright (c) Dean Luick, 1992 */
/* NetHack may be freely redistributed. See license for details. */
* handler and reset its label to be the prompt text (below).
*/
input_func = yn_key;
+ swap_fg_bg(yn_label); /* highlight the prompt line */
} else if (!yn_label) {
/*
* Not 'slow'; create a persistent widget that will be popped up
num_args = 0;
XtSetArg(args[num_args], XtNlabel, " "); num_args++;
XtSetValues(yn_label, args, num_args);
+ swap_fg_bg(yn_label); /* un-highlight the prompt line */
} else {
nh_XtPopdown(yn_popup); /* this removes the event grab */
}
XtSetArg(args[num_args], nhStr(XtNresizable), True); num_args++;
XtSetArg(args[num_args], nhStr(XtNlabel), " "); num_args++;
XtSetValues(yn_label, args, num_args);
+ /* switch foreground and background so that the prompt line looks
+ like part of the map */
+ swap_fg_bg(yn_label);
}
/*