This commit is contained in:
jl777
2019-02-17 01:51:13 -11:00
parent 8824e836a7
commit 43edfb4ae2
4 changed files with 14 additions and 2 deletions

View File

@@ -407,3 +407,9 @@ int32_t wgetnstr(WINDOW *win, char *str, int32_t n) // stub
return(0);
}
int32_t getch(void)
{
fprintf(stderr,"unexpected and unsupported call to getch\n");
return(0);
}

View File

@@ -41,10 +41,12 @@ struct cursesd_info
uint8_t screen[LINES][COLS];
int32_t x,y;
};
extern WINDOW *stdscr,*curscr;
typedef struct cursesd_info WINDOW;
extern WINDOW *stdscr,*curscr;
typedef char chtype;
int32_t getch(void); // stub
WINDOW *initscr(void);
int32_t endwin(void);
int32_t isendwin(void);
@@ -138,6 +140,8 @@ int32_t mvwprintw(WINDOW *win,int32_t y,int32_t x,char *fmt,...);
#define clearok(win,bf) 0
#define idlok(win,bf) 0
#define leaveok(win,bf) 0
#define halfdelay(x) 0
#define nocbreak() 0
#ifndef TRUE
#define TRUE 1

View File

@@ -544,9 +544,11 @@ tstp(int ignored)
fflush(stdout);
//wmove(curscr,oy,ox);
#ifndef __APPLE__
#ifndef BUILD_ROGUE
curscr->_cury = oy;
curscr->_curx = ox;
#endif
#endif
}
/*

View File

@@ -861,7 +861,7 @@ extern int cNWOOD;
extern const char *metal[];
extern int cNMETAL;
extern WINDOW *stdscr,*curscr;
//extern WINDOW *stdscr,*curscr;
#endif