diff srogue/io.c @ 86:8757a0593e6e

srogue: add arrow-key support. This is a first attempt which may not be completely portable.
author John "Elwin" Edwards
date Sat, 10 Aug 2013 17:43:58 -0700
parents 3aa87373c908
children 458df24e973d
line wrap: on
line diff
--- a/srogue/io.c	Fri Aug 09 09:34:07 2013 -0700
+++ b/srogue/io.c	Sat Aug 10 17:43:58 2013 -0700
@@ -20,6 +20,8 @@
 #include "rogue.h"
 #include "rogue.ext"
 
+int md_readchar(WINDOW *win);
+
 /*
  * msg:
  *	Display a message at the top of the screen.
@@ -132,7 +134,7 @@
 	char c;
 
 	fflush(stdout);
-        return( wgetch(cw) );
+        return( md_readchar(cw) );
 }
 
 char *hungstr[] = {