2021-03-02 08:05:14 +03:00
|
|
|
#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);
|
2021-03-02 08:05:14 +03:00
|
|
|
|
|
|
|
void gterm_putchar(uint8_t c);
|
|
|
|
void gterm_clear(bool move);
|
|
|
|
void gterm_enable_cursor(void);
|
2021-06-08 01:06:33 +03:00
|
|
|
bool gterm_disable_cursor(void);
|
2021-03-02 08:05:14 +03:00
|
|
|
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);
|
2021-07-08 17:33:24 +03:00
|
|
|
bool gterm_scroll_disable(void);
|
|
|
|
void gterm_scroll_enable(void);
|
2021-03-02 08:05:14 +03:00
|
|
|
|
|
|
|
void gterm_double_buffer_flush(void);
|
|
|
|
void gterm_double_buffer(bool state);
|
|
|
|
|
|
|
|
#endif
|