sim.h (387B)
1 #define ED "\x1b[2J" 2 #define EL "\x1b[2K" 3 #define CSI "\x1b[" 4 5 typedef unsigned char uchar; 6 typedef unsigned int uint; 7 typedef unsigned long ulong; 8 typedef unsigned short ushort; 9 10 typedef struct { 11 ushort wx, wy; 12 ushort t; 13 } Window; 14 15 void die(char* fmt, ...); 16 void* emalloc(ulong n); 17 void* erealloc(void* p, ulong n); 18 void win_end(); 19 void win_init(); 20 void win_query(Window* w);