]> granicus.if.org Git - nethack/commit
TTY: Prevent accidental escapes from string entries
authorPasi Kallinen <paxed@alt.org>
Sun, 8 Mar 2015 13:11:01 +0000 (15:11 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 17 Mar 2015 16:47:18 +0000 (18:47 +0200)
commitdd0a28c7b153924cd616166503a968e8e5076fb8
treed9ad2c64e70d72678ad346def86304338176e980
parentbb2351b83f60924b226c7532a36aca28f7c57792
TTY: Prevent accidental escapes from string entries

On NAO, one of the major complaints was accidental escaping
from wishing prompt when using cursor keys.  The users were
trying to go "back" on the entry to fix a typo, but lost
the wish instead.

This prevents escaping out of a text prompt if there is any
text entered into the prompt; pressing escape clears the prompt.
win/tty/getline.c