]> granicus.if.org Git - nethack/commit
more !SHELL, !SUSPEND
authorPatR <rankin@nethack.org>
Mon, 3 Dec 2018 09:46:01 +0000 (01:46 -0800)
committerPatR <rankin@nethack.org>
Mon, 3 Dec 2018 09:46:01 +0000 (01:46 -0800)
commitf2195c1212ec7f6c39fafc8848de35253e7f0b68
treeaa620214a11d095ee7fe55c2dfe9280bcc375d8f
parent06fba14091ece7f715c6c350d40f7c9843da1181
more !SHELL, !SUSPEND

Update tty command completion to ignore #shell and #suspend when
they're disabled.  (Since they aren't flagged for command completion,
this should be unnoticeable.)

Update X11 extended command selection to not show shell and suspend
in the menu when they're disabled.  (Trickier than I expected.)

X11 currently rejects #suspend (at run time, not compile time) but
allows #shell.  If it was launched syncronously from a terminal
window, shell escape behaves sanely.  Otherwise, that seems like
asking for trouble.
win/X11/winmisc.c
win/tty/getline.c