summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r--src/fe-text/gui-readline.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index bc3429d8..c28daed1 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -313,12 +313,9 @@ void readline(void)
int key;
for (;;) {
- key = getch();
- if (key == ERR
-#ifdef KEY_RESIZE
- || key == KEY_RESIZE
-#endif
- ) break;
+ key = screen_getch();
+ if (key == -1)
+ break;
handle_key(key);
}