#ifndef __LIB__TERM_H__ #define __LIB__TERM_H__ #include #include #include extern void (*raw_putchar)(uint8_t c); extern void (*clear)(bool move); extern void (*enable_cursor)(void); extern void (*disable_cursor)(void); extern void (*set_cursor_pos)(int x, int y); extern void (*get_cursor_pos)(int *x, int *y); extern void (*set_text_fg)(int fg); extern void (*set_text_bg)(int bg); extern void (*term_double_buffer)(bool status); extern void (*term_double_buffer_flush)(void); void term_vbe(uint32_t *colours, int margin, int margin_gradient, struct image *background); void term_textmode(void); void term_deinit(void); void term_write(const char *buf, size_t count); extern int term_rows, term_cols; #endif