]> granicus.if.org Git - nethack/commit
stale prompt revisited
authornethack.rankin <nethack.rankin>
Thu, 12 May 2005 03:16:05 +0000 (03:16 +0000)
committernethack.rankin <nethack.rankin>
Thu, 12 May 2005 03:16:05 +0000 (03:16 +0000)
commit3b4ca7f6eb4465ba9e108df8b0d0d86bb6c5f98d
tree64464e435c921bdc24f888ecc7ec37c5946ec808
parent06bb86e63b37fd43615492829d6457a3df1e8f85
stale prompt revisited

     Further discussion in the newsgroup pointed out a case not involving
<ESC> where the "In what direction?" prompt remained displayed after it was
no longer applicable:  throwing something where there's no monster target
in the line of fire.  You don't get any hit or miss message in a case like
that, so the last message (the prompt) stays in view.  I don't think there
are any cases where getdir()'s caller deliberately wants to leave the old
prompt up, so just clear it unconditionally as soon as the user answers.
src/cmd.c