1 /* fbpad header file */
3 #define MIN(a, b) ((a) < (b) ? (a) : (b))
4 #define MAX(a, b) ((a) > (b) ? (a) : (b))
6 #define ESC 27 /* escape code */
7 #define MAXCHARS (1 << 15) /* maximum characters on screen */
8 #define MAXDOTS (1 << 10) /* maximum pixels in glyphs */
12 #define TERM_VISIBLE 1
25 struct term_state cur
, sav
;
31 void term_load(struct term
*term
, int visible
);
32 void term_save(struct term
*term
);
35 void term_send(int c
);
36 void term_exec(char *cmd
);
38 void term_screenshot(void);
46 void pad_put(int ch
, int r
, int c
, int fg
, int bg
);
49 void pad_blank(int c
);
50 void pad_blankrow(int r
, int bg
);
53 struct font
*font_open(char *path
);
54 void font_free(struct font
*font
);
55 int font_rows(struct font
*font
);
56 int font_cols(struct font
*font
);
57 int font_bitmap(struct font
*font
, void *dst
, int c
);
60 void scr_snap(void *owner
);
61 int scr_load(void *owner
);
62 void scr_free(void *owner
);