1 #ifndef GCONSOLE_H
2 #define GCONSOLE_H
3 
4 #define MAX_COLUMNS 100
5 #define MAX_ROWS 37
6 #define HOLDDELAY 24
7 #define DOUBLECLICKDELAY 15
8 
9 int initscreen(void);
10 void closescreen(void);
11 void clearscreen(void);
12 void fliptoscreen(void);
13 void printtext(int x, int y, int color, const char *text);
14 void printtextc(int y, int color, const char *text);
15 void printtextcp(int cp, int y, int color, const char *text);
16 void printblank(int x, int y, int length);
17 void printblankc(int x, int y, int color, int length);
18 void drawbox(int x, int y, int color, int sx, int sy);
19 void printbg(int x, int y, int color, int length);
20 void getkey(void);
21 
22 #ifndef GCONSOLE_C
23 extern int key, rawkey, shiftpressed, cursorflashdelay;
24 extern int mouseb, prevmouseb;
25 extern int mouseheld;
26 extern int mousex, mousey;
27 extern unsigned bigwindow;
28 #endif
29 
30 #endif
31