md_readchar
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
static int32_t endwinflag;
|
static int32_t endwinflag;
|
||||||
WINDOW *stdscr;
|
WINDOW *stdscr;
|
||||||
|
int32_t ESCDELAY;
|
||||||
|
|
||||||
WINDOW *newwin(int32_t nlines,int32_t ncols,int32_t begin_y,int32_t begin_x)
|
WINDOW *newwin(int32_t nlines,int32_t ncols,int32_t begin_y,int32_t begin_x)
|
||||||
{
|
{
|
||||||
@@ -413,3 +414,9 @@ int32_t getch(void)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t md_readchar(void)
|
||||||
|
{
|
||||||
|
fprintf(stderr,"unexpected and unsupported call to md_readchar\n");
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#define ERR (-1)
|
||||||
|
|
||||||
struct cursesd_info
|
struct cursesd_info
|
||||||
{
|
{
|
||||||
uint8_t screen[LINES][COLS];
|
uint8_t screen[LINES][COLS];
|
||||||
@@ -43,9 +45,11 @@ struct cursesd_info
|
|||||||
};
|
};
|
||||||
typedef struct cursesd_info WINDOW;
|
typedef struct cursesd_info WINDOW;
|
||||||
extern WINDOW *stdscr,*curscr;
|
extern WINDOW *stdscr,*curscr;
|
||||||
|
extern int32_t ESCDELAY;
|
||||||
typedef char chtype;
|
typedef char chtype;
|
||||||
|
|
||||||
int32_t getch(void); // stub
|
int32_t getch(void); // stub
|
||||||
|
int32_t md_readchar(void); // stub
|
||||||
|
|
||||||
WINDOW *initscr(void);
|
WINDOW *initscr(void);
|
||||||
int32_t endwin(void);
|
int32_t endwin(void);
|
||||||
|
|||||||
@@ -1081,6 +1081,7 @@ md_setsuspchar(int c)
|
|||||||
#define M_KEYPAD 2
|
#define M_KEYPAD 2
|
||||||
#define M_TRAIL 3
|
#define M_TRAIL 3
|
||||||
|
|
||||||
|
#ifndef BUILD_ROGUE
|
||||||
int
|
int
|
||||||
md_readchar()
|
md_readchar()
|
||||||
{
|
{
|
||||||
@@ -1320,7 +1321,8 @@ md_readchar()
|
|||||||
|
|
||||||
return(ch & 0x7F);
|
return(ch & 0x7F);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(LOADAV) && defined(HAVE_NLIST_H) && defined(HAVE_NLIST)
|
#if defined(LOADAV) && defined(HAVE_NLIST_H) && defined(HAVE_NLIST)
|
||||||
/*
|
/*
|
||||||
* loadav:
|
* loadav:
|
||||||
|
|||||||
Reference in New Issue
Block a user