]> granicus.if.org Git - nethack/commit
pick-a-color in color
authorPatR <rankin@nethack.org>
Thu, 10 Sep 2020 23:01:18 +0000 (16:01 -0700)
committerPatR <rankin@nethack.org>
Thu, 10 Sep 2020 23:01:18 +0000 (16:01 -0700)
commit239b7aaf66a33e64be0b4375e270a314912c48ae
tree0defca5b29df84a43ee959db6810c5df63fe848d
parent5772069fb790ed42ea3d78d3eb45a53f8371b148
pick-a-color in color

Similar to how the pick-an-attribute menu for menu colors and
status highlights shows the attribute names using the attribute
so that you can see how it looks (or whether it is supported),
have the pick-a-color menu show the color names in the
corresponding color.  Does so by temporarily removing any
user-specified menu colors and setting up another list of such
for matching color names.

Forces the 'menucolors' option On while the pick-a-color menu is
in use, then restores the previous setting along with the user's
menu colorings.  Might need some way to avoid setting that for a
configuration where colors don't work.
doc/fixes37.0
include/decl.h
src/decl.c
src/options.c