From e9c1b3c8b9930921c856d6250296333b7e07fb3f Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Tue, 3 Sep 2013 14:02:15 -0700 Subject: [PATCH] srogue: fix backspace key during prompts. md_readchar() handled the key properly, but get_str(), which is called when prompting user entry, called wgetch() instead of md_readchar(). --- srogue/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srogue/options.c b/srogue/options.c index 15f2572..fa51e25 100644 --- a/srogue/options.c +++ b/srogue/options.c @@ -122,7 +122,7 @@ WINDOW *awin; /* * loop reading in the string, and put it in a temporary buffer */ - for (sp = buf; (c=wgetch(awin)) != '\n' && c != '\r' && c != ESCAPE; + for (sp = buf; (c=readchar(awin)) != '\n' && c != '\r' && c != ESCAPE; wclrtoeol(awin), draw(awin)) { if (( (int)sp - (int)buf ) >= 50) { *sp = '\0'; /* line was too long */