From: PatR Date: Fri, 28 Jan 2022 00:11:22 +0000 (-0800) Subject: X11 topten display X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=993477b48f5d183c9d75dd74e2a8d890bb39a20c;p=nethack X11 topten display Make the same change as was done for Qt three or so weeks ago: force the 'toptenwin' option on in X11_init_nhwdinows() so that scores (or wizard mode "your score is ignored") are shown in a popup text window instead of being sent to stdout. --- diff --git a/win/X11/winX.c b/win/X11/winX.c index d0209ca64..0221e8271 100644 --- a/win/X11/winX.c +++ b/win/X11/winX.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 winX.c $NHDT-Date: 1641763627 2022/01/09 21:27:07 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.108 $ */ +/* NetHack 3.7 winX.c $NHDT-Date: 1643328675 2022/01/28 00:11:15 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.109 $ */ /* Copyright (c) Dean Luick, 1992 */ /* NetHack may be freely redistributed. See license for details. */ @@ -1506,6 +1506,12 @@ X11_init_nhwindows(int *argcp, char **argv) for (i = 0; i < MAX_WINDOWS; i++) window_list[i].type = NHW_NONE; + /* force high scores display to be shown in a window, and don't allow + that to be toggled off via 'O' (note: 'nethack -s' won't reach here; + its output goes to stdout and could be redirected into a file) */ + iflags.toptenwin = TRUE; + set_option_mod_status("toptenwin", set_in_config); + /* add another option that can be set */ set_wc_option_mod_status(WC_TILED_MAP, set_in_game); set_option_mod_status("mouse_support", set_in_game);