rulimine/stage23/lib/gterm.h

28 lines
660 B
C
Raw Normal View History

#ifndef __LIB__GTERM_H__
#define __LIB__GTERM_H__
#include <stdint.h>
#include <stdbool.h>
#include <lib/image.h>
#include <drivers/vbe.h>
2021-04-07 03:10:28 +03:00
extern struct fb_info fbinfo;
2021-04-11 03:30:48 +03:00
bool gterm_init(int *_rows, int *_cols, int width, int height);
void gterm_putchar(uint8_t c);
void gterm_clear(bool move);
void gterm_enable_cursor(void);
bool gterm_disable_cursor(void);
void gterm_set_cursor_pos(int x, int y);
void gterm_get_cursor_pos(int *x, int *y);
void gterm_set_text_fg(int fg);
void gterm_set_text_bg(int bg);
bool gterm_scroll_disable(void);
void gterm_scroll_enable(void);
void gterm_double_buffer_flush(void);
void gterm_double_buffer(bool state);
#endif