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().
This commit is contained in:
parent
138383b394
commit
e9c1b3c8b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue