Test
This commit is contained in:
@@ -101,7 +101,7 @@ HDRS = rogue.h extern.h score.h
|
|||||||
OBJS1 = vers.$(O) extern.$(O) armor.$(O) chase.$(O) command.$(O) \
|
OBJS1 = vers.$(O) extern.$(O) armor.$(O) chase.$(O) command.$(O) \
|
||||||
daemon.$(O) daemons.$(O) fight.$(O) init.$(O) io.$(O) list.$(O) \
|
daemon.$(O) daemons.$(O) fight.$(O) init.$(O) io.$(O) list.$(O) \
|
||||||
mach_dep.$(O) rogue.$(O) mdport.$(O) misc.$(O) monsters.$(O) \
|
mach_dep.$(O) rogue.$(O) mdport.$(O) misc.$(O) monsters.$(O) \
|
||||||
move.$(O) new_level.$(O) cursesd.$(O)
|
move.$(O) new_level.$(O)
|
||||||
OBJS2 = options.$(O) pack.$(O) passages.$(O) potions.$(O) rings.$(O) \
|
OBJS2 = options.$(O) pack.$(O) passages.$(O) potions.$(O) rings.$(O) \
|
||||||
rip.$(O) rooms.$(O) save.$(O) scrolls.$(O) state.$(O) sticks.$(O) \
|
rip.$(O) rooms.$(O) save.$(O) scrolls.$(O) state.$(O) sticks.$(O) \
|
||||||
things.$(O) weapons.$(O) wizard.$(O) xcrypt.$(O)
|
things.$(O) weapons.$(O) wizard.$(O) xcrypt.$(O)
|
||||||
|
|||||||
@@ -15,9 +15,94 @@
|
|||||||
|
|
||||||
#include "cursesd.h"
|
#include "cursesd.h"
|
||||||
|
|
||||||
|
static int32_t endwinflag;
|
||||||
|
|
||||||
WINDOW *initscr()
|
WINDOW *initscr()
|
||||||
{
|
{
|
||||||
if ( stdscr == 0 )
|
if ( stdscr == 0 )
|
||||||
stdscr = (WINDOW *)calloc(1,sizeof(*stdscr));
|
stdscr = (WINDOW *)calloc(1,sizeof(*stdscr));
|
||||||
return(stdscr);
|
return(stdscr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void endwin()
|
||||||
|
{
|
||||||
|
if ( stdscr != 0 )
|
||||||
|
free(stdscr), stdscr = 0;
|
||||||
|
endwinflag = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int isendwin(void)
|
||||||
|
{
|
||||||
|
return(endwinflag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int wrefresh(WINDOW *win)
|
||||||
|
{
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
int refresh(void)
|
||||||
|
{
|
||||||
|
endwinflag = 0;
|
||||||
|
return(wrefresh(stdscr));
|
||||||
|
}
|
||||||
|
|
||||||
|
int wnoutrefresh(WINDOW *win)
|
||||||
|
{
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
int doupdate(void)
|
||||||
|
{
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
int redrawwin(WINDOW *win)
|
||||||
|
{
|
||||||
|
return(wrefresh(win));
|
||||||
|
}
|
||||||
|
|
||||||
|
int wredrawln(WINDOW *win, int beg_line, int num_lines)
|
||||||
|
{
|
||||||
|
return(wrefresh(win));
|
||||||
|
}
|
||||||
|
|
||||||
|
int werase(WINDOW *win)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int erase(void)
|
||||||
|
{
|
||||||
|
return(werase(stdscr));
|
||||||
|
}
|
||||||
|
|
||||||
|
int wclear(WINDOW *win)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int clear(void)
|
||||||
|
{
|
||||||
|
return(wclear(stdscr));
|
||||||
|
}
|
||||||
|
|
||||||
|
int wclrtobot(WINDOW *win)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int clrtobot(void)
|
||||||
|
{
|
||||||
|
return(wclrtobot(stdscr));
|
||||||
|
}
|
||||||
|
|
||||||
|
int wclrtoeol(WINDOW *win)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int clrtoeol(void)
|
||||||
|
{
|
||||||
|
return(wclrtoeol(stdscr));
|
||||||
|
}
|
||||||
|
|||||||
@@ -49,6 +49,28 @@ typedef struct cursesd_info WINDOW;
|
|||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
WINDOW *initscr(void);
|
||||||
|
int endwin(void);
|
||||||
|
int isendwin(void);
|
||||||
|
//SCREEN *newterm(const char *type, FILE *outfd, FILE *infd);
|
||||||
|
//SCREEN *set_term(SCREEN *new);
|
||||||
|
//void delscreen(SCREEN* sp);
|
||||||
|
|
||||||
|
int refresh(void);
|
||||||
|
int wrefresh(WINDOW *win);
|
||||||
|
//int wnoutrefresh(WINDOW *win);
|
||||||
|
//int doupdate(void);
|
||||||
|
int redrawwin(WINDOW *win);
|
||||||
|
int wredrawln(WINDOW *win, int beg_line, int num_lines);
|
||||||
|
|
||||||
|
int erase(void);
|
||||||
|
int werase(WINDOW *win);
|
||||||
|
int clear(void);
|
||||||
|
int wclear(WINDOW *win);
|
||||||
|
int clrtobot(void);
|
||||||
|
int wclrtobot(WINDOW *win);
|
||||||
|
int clrtoeol(void);
|
||||||
|
int wclrtoeol(WINDOW *win);
|
||||||
|
|
||||||
#define standout()
|
#define standout()
|
||||||
#define standend()
|
#define standend()
|
||||||
|
|||||||
Reference in New Issue
Block a user