Mercurial > hg > early-roguelike
diff arogue5/options.c @ 97:d4bf99f82ea0
arogue5: fix backspace key.
author | John "Elwin" Edwards |
---|---|
date | Wed, 28 Aug 2013 08:37:56 -0700 |
parents | c49f7927b0fa |
children | aac28331e71d |
line wrap: on
line diff
--- a/arogue5/options.c Tue Aug 27 22:54:28 2013 -0700 +++ b/arogue5/options.c Wed Aug 28 08:37:56 2013 -0700 @@ -223,7 +223,7 @@ * loop reading in the string, and put it in a temporary buffer */ for (sp = buf; - (c = wgetch(win)) != '\n' && + (c = md_readchar(win)) != '\n' && c != '\r' && c != '\033' && c != '\007' &&