rulimine/stage2/lib/term.h

25 lines
654 B
C
Raw Normal View History

2020-09-02 10:55:56 +03:00
#ifndef __LIB__TERM_H__
#define __LIB__TERM_H__
#include <stddef.h>
#include <stdbool.h>
#include <lib/image.h>
2020-09-02 10:55:56 +03:00
extern void (*raw_putchar)(char 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);
2020-09-30 18:29:07 +03:00
void term_vbe(uint32_t *colours, int margin, int margin_gradient, struct image *background);
2020-09-02 10:55:56 +03:00
void term_textmode(void);
void term_deinit(void);
void term_write(const char *buf, size_t count);
2020-10-27 10:09:27 +03:00
extern int term_rows, term_cols;
2020-09-02 10:55:56 +03:00
#endif