]> granicus.if.org Git - nethack/commit
tty menu hack for ':'
authorPatR <rankin@nethack.org>
Sat, 28 Mar 2015 01:24:53 +0000 (18:24 -0700)
committerPatR <rankin@nethack.org>
Sat, 28 Mar 2015 01:24:53 +0000 (18:24 -0700)
commit45c5a796818fc064473146548a002f3292b73956
tree81ab4051ffd2685c44c35a15778278acd5e02de3
parent4a3a130795f786a3bb7406edf32c98a8e301bf9e
tty menu hack for ':'

Looting a container generates a menu which contains ': - look inside'
but the recent change to make ':' be a menu command for selecting
items which match a search string made it impossible to pick that item.
(Well, I suppose you could enter a search string which matched it, but
that's a nuisance compared to just directly picking a choice.)  This
makes menu selection for tty give precedence to menu choice characters
over mapped menu commands when some character happens to be both.  I'm
not sure whether it ought to be expended to group accelerators too, so
didn't do that.

There's bound to be a better way to do this, but it works.
win/tty/wintty.c