#pragma once #include #include #include #define KEY_ESCAPE 0x1b extern void *xmalloc(size_t size); extern unsigned long strict_strtoul(const char *nptr, int base); extern void cursinit(void); extern void cursupdate(void); extern PANEL *newpan(int h, int w, int y, int x); extern void delpan(PANEL *pan); extern void reset_panel(PANEL *pan, int h, int w, int y, int x); extern int pprintw(PANEL *pan, const char *fmt, ...); extern int pclear(PANEL *pan); extern int pattron(PANEL *pan, int attrs); extern int pattroff(PANEL *pan, int attrs);