srogue: add arrow-key support.

This is a first attempt which may not be completely portable.
This commit is contained in:
John "Elwin" Edwards 2013-08-10 17:43:58 -07:00
parent 2d117230ed
commit 4aa582dfb6
4 changed files with 660 additions and 9 deletions

View file

@ -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 @@ readchar()
char c;
fflush(stdout);
return( wgetch(cw) );
return( md_readchar(cw) );
}
char *hungstr[] = {