changeset 103:00baf21eb047

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().
author John "Elwin" Edwards
date Tue, 03 Sep 2013 14:02:15 -0700
parents 1906d183f1f5
children fbc75509f4cd
files srogue/options.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/srogue/options.c	Mon Sep 02 15:47:37 2013 -0700
+++ b/srogue/options.c	Tue Sep 03 14:02:15 2013 -0700
@@ -122,7 +122,7 @@
 	/*
 	 * 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 */