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 */
11 #define DWCHAR 0x40000000u /* 2nd half of a fullwidth char */
18 #define TERM_VISIBLE 1
31 struct term_state cur
, sav
;
37 void term_load(struct term
*term
, int visible
);
38 void term_save(struct term
*term
);
41 void term_send(int c
);
42 void term_exec(char *cmd
);
44 void term_screenshot(void);
52 void pad_put(int ch
, int r
, int c
, int fg
, int bg
);
55 void pad_blank(int c
);
56 void pad_blankrow(int r
, int bg
);
59 struct font
*font_open(char *path
);
60 void font_free(struct font
*font
);
61 int font_rows(struct font
*font
);
62 int font_cols(struct font
*font
);
63 int font_bitmap(struct font
*font
, void *dst
, int c
);
66 void scr_snap(void *owner
);
67 int scr_load(void *owner
);
68 void scr_free(void *owner
);