Mercurial > hg > early-roguelike
comparison 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 |
comparison
equal
deleted
inserted
replaced
96:9fb343307b6b | 97:d4bf99f82ea0 |
---|---|
221 getyx(win, oy, ox); | 221 getyx(win, oy, ox); |
222 /* | 222 /* |
223 * loop reading in the string, and put it in a temporary buffer | 223 * loop reading in the string, and put it in a temporary buffer |
224 */ | 224 */ |
225 for (sp = buf; | 225 for (sp = buf; |
226 (c = wgetch(win)) != '\n' && | 226 (c = md_readchar(win)) != '\n' && |
227 c != '\r' && | 227 c != '\r' && |
228 c != '\033' && | 228 c != '\033' && |
229 c != '\007' && | 229 c != '\007' && |
230 sp < &buf[LINELEN-1]; | 230 sp < &buf[LINELEN-1]; |
231 wclrtoeol(win), draw(win)) | 231 wclrtoeol(win), draw(win)) |