]> granicus.if.org Git - nethack/commitdiff
X11 resource defaults
authorPatR <rankin@nethack.org>
Thu, 15 Nov 2018 01:18:12 +0000 (17:18 -0800)
committerPatR <rankin@nethack.org>
Thu, 15 Nov 2018 01:18:12 +0000 (17:18 -0800)
Some of the items in NetHack.ad were separated from others by "!"
comment line rather than plain blank line and that tended to make it
look like the two items were directly related.  For the ones which
aren't, remove '!'.

I also expanded some comments and reordered a couple of resources,
moving 'slow' closer to top and advanced 'translations' farther down.

win/X11/NetHack.ad

index 0e5ca8b1f7670f3f1652ee56a5b8f5cd39197342..4894560f448699f3ad022c1a73b53716ff05a5d9 100644 (file)
@@ -1,4 +1,4 @@
-! $NHDT-Date: 1524689294 2018/04/25 20:48:14 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.15 $
+! $NHDT-Date: 1542244678 2018/11/15 01:17:58 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.19 $
 ! Copyright (c) 2017 by Pasi Kallinen
 ! NetHack may be freely redistributed.  See license for details.
 
@@ -37,7 +37,7 @@ NetHack*text*borderWidth:  0
 !
 NetHack.tile_file: x11tiles
 !NetHack.double_tile_size: True
-!
+
 ! The annotation of pets.
 !NetHack.pet_mark_bitmap: pet_mark.xbm
 !NetHack.pet_mark_color: Red
@@ -57,30 +57,25 @@ NetHack.tile_file: x11tiles
 ! The color to use for the text on the hero's tombstone
 NetHack*rip*foreground: black
 
-! Translation tables.  There are currently several actions in nethack, but
-! the only one you should be using is "input()", which, with no parameters,
-! uses XLookupString to translate your keypress into a command.  You
-! can optionally give it parameters to change the behavior, see the example
-! below.  Note that you have to specify the translations in every appropriate
-! window.
-NetHack*message*translations:  <KeyPress>: input()
-!
-! Example extra translations for the map window.
-!
-!NetHack*map*translations:     #override \
-!                              !<Key>Left: input(h) \n\
-!                              !<Key>Right: input(l) \n\
-!                              !<Key>Up: input(k) \n\
-!                              !<Key>Down: input(j)
-!
 ! The icon to use; supported values are nh72, nh56, and nh32; nh72 is the
 ! default.  Some window managers may not support the larger icon sizes.
 ! It is not guaranteed that the window manager will honor the icon selection.
 !NetHack*icon: nh56
-!
+
 ! If True, the default, a popup for single character prompts such as y/n
-! questions is _not_ used.
-NetHack*slow: True
+! questions is _not_ used.  Single-character prompts appear in a fixed
+! position between the top of the map and the bottom of the messages.
+! If False, popups appear near where the pointer is positioned so tend to
+! meander around the screen depending upon where the last click ocurred.
+! (The name 'slow' is misleading; this feature was originally necessitated
+! by window managers which were slow putting up popup windows, but the
+! fixed-position prompting can be just as useful for quick popups.)
+!NetHack*slow: False
+
+! If True, force keyboard to attach to popup windows.  Some window managers
+! enforce a click-to-focus-keyboard policy (e.g. the DECwindows wm).  NetHack
+! has a lot of popups and is almost unplayable without some kind of autofocus.
+!NetHack*autofocus: True
 
 ! If 'slow' is True, setting 'highlight_prompt' to True will cause the line
 ! between map and message display that's used for prompting to be "hidden"
@@ -91,19 +86,33 @@ NetHack*highlight_prompt: False
 
 ! The number of lines the message window will show without scrolling.
 !NetHack*message_lines: 12
-!
+
 ! If True, the message window has a line that seperates old and new messages.
 !NetHack*message_line: True
-!
-! If True, force keyboard to attach to popup windows.  Some window managers
-! enforce a click-to-focus-keyboard policy (e.g. the DECwindows wm).  NetHack
-! has a lot of popups and is almost unplayable without some kind of autofocus.
-!NetHack*autofocus: True
-!
 
-! True, use a "fancy" style status area vs. TTY-style status lines
+! If True, the default, use a "fancy" style status area below the map.
+! Fancy status has some highlighting but does not honor STATUS_HILITES.
+! If False, use TTY-style status lines (two text lines below the map).
+! TTY status honors STATUS_HILITE thresholds and colors but for
+! attributes, only supports inverse (not bold, dim, blink, or underline).
+! (As of this writing, fancy status looks better with a tiles map and
+! tty-style status looks good with a text map but not with a tiles one.)
 !NetHack*fancy_status: False
 
+! Translation tables.  There are currently several actions in nethack, but
+! the only one you should be using is "input()", which, with no parameters,
+! uses XLookupString to translate your keypress into a command.  You can
+! optionally give it parameters to change the behavior, see the example below.
+! Note that you have to specify the translations in every appropriate window.
+NetHack*message*translations:  <KeyPress>: input()
+!
+! Example extra translations for the map window.
+!NetHack*map*translations:     #override \
+!                              !<Key>Left: input(h) \n\
+!                              !<Key>Right: input(l) \n\
+!                              !<Key>Up: input(k) \n\
+!                              !<Key>Down: input(j)
+
 ! Specify the number of rows and columns of the map window.  The default
 ! is the standard 80x21 window.  Note: this _does_not_ change nethack's
 ! level size, only what you see of it.