changeset 269:a413bc97d3ea

UltraRogue: fix the arrow keys. The startup sequence now calls keypad() to turn on curses recognition of special keys.
author John "Elwin" Edwards
date Tue, 28 Feb 2017 21:14:53 -0500
parents 4ab49e42dd6a
children 7a96fede6cc8
files urogue/main.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/urogue/main.c	Sun Feb 26 16:51:29 2017 -0500
+++ b/urogue/main.c	Tue Feb 28 21:14:53 2017 -0500
@@ -202,6 +202,7 @@
     cw = newwin(LINES, COLS, 0, 0);
     mw = newwin(LINES, COLS, 0, 0);
     hw = newwin(LINES, COLS, 0, 0);
+    keypad(cw, TRUE);
 
     if (use_savedir) {
         if (!restore(file_name))