2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 23:31:39 +00:00

Define KEY_MIN and use it in kb.c.

This commit is contained in:
Michael Brown 2006-12-20 21:10:32 +00:00
parent 43d976edd0
commit b9f8599537
2 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,7 @@ int wgetch ( WINDOW *win ) {
c = _wgetc( win );
if ( m_echo ) {
if ( c >= 0401 && c <= 0633 ) {
if ( c >= KEY_MIN ) {
switch(c) {
case KEY_LEFT :
case KEY_BACKSPACE :
@ -112,7 +112,7 @@ int wgetnstr ( WINDOW *win, char *str, int n ) {
_wcursback( win );
wdelch( win );
} else {
if ( c >= 0401 && c <= 0633 ) {
if ( c >= KEY_MIN ) {
switch(c) {
case KEY_LEFT :
case KEY_BACKSPACE :

View File

@ -194,6 +194,7 @@ extern unsigned short _LINES;
/*
* KEY code constants
*/
#define KEY_MIN 0401 /**< Minimum special key */
#define KEY_BREAK 0401 /**< Break key */
#define KEY_DOWN 0402 /**< down-arrow key */
#define KEY_UP 0403 /**< up-arrow key */