sim

the sim text editor
git clone git://ssnf.xyz/sim
Log | Files | Refs | README

sim.h (400B)


      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(void);
     19 void  win_init(Window* w);
     20 void  win_query(Window* w);