]> 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>
Sun, 8 Mar 2015 13:11:01 +0000 (15:11 +0200)
commit8c048e60861d41a6da6b12378556af18fa36fe09
treed9ad2c64e70d72678ad346def86304338176e980
parenta66b498dda0bafffcafc81ee377670207c106b0b
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