2020-04-19 14:20:26 +03:00
|
|
|
#ifndef __DRIVERS__VGA_TEXTMODE_H__
|
|
|
|
#define __DRIVERS__VGA_TEXTMODE_H__
|
2019-05-30 16:59:25 +03:00
|
|
|
|
2020-09-02 10:55:56 +03:00
|
|
|
#include <stdbool.h>
|
2021-08-16 19:02:28 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
2019-05-30 16:59:25 +03:00
|
|
|
|
2021-08-16 19:02:28 +03:00
|
|
|
void init_vga_textmode(size_t *rows, size_t *cols, bool managed);
|
2020-04-19 14:20:26 +03:00
|
|
|
|
2020-12-07 19:14:14 +03:00
|
|
|
void text_putchar(uint8_t c);
|
2020-09-02 10:55:56 +03:00
|
|
|
void text_clear(bool move);
|
2020-04-21 19:27:05 +03:00
|
|
|
void text_enable_cursor(void);
|
2021-06-08 01:06:33 +03:00
|
|
|
bool text_disable_cursor(void);
|
2021-08-16 19:02:28 +03:00
|
|
|
void text_set_cursor_pos(size_t x, size_t y);
|
|
|
|
void text_get_cursor_pos(size_t *x, size_t *y);
|
|
|
|
void text_set_text_fg(size_t fg);
|
|
|
|
void text_set_text_bg(size_t bg);
|
|
|
|
void text_set_text_fg_bright(size_t fg);
|
2021-08-17 01:37:24 +03:00
|
|
|
void text_set_text_bg_bright(size_t bg);
|
2021-08-01 00:51:48 +03:00
|
|
|
void text_set_text_fg_default(void);
|
|
|
|
void text_set_text_bg_default(void);
|
2021-07-08 17:33:24 +03:00
|
|
|
bool text_scroll_disable(void);
|
|
|
|
void text_scroll_enable(void);
|
2021-08-16 19:02:28 +03:00
|
|
|
void text_move_character(size_t new_x, size_t new_y, size_t old_x, size_t old_y);
|
|
|
|
void text_scroll(void);
|
2022-01-19 01:46:25 +03:00
|
|
|
void text_revscroll(void);
|
2021-08-16 19:02:28 +03:00
|
|
|
void text_swap_palette(void);
|
2022-01-19 01:46:25 +03:00
|
|
|
void text_save_state(void);
|
|
|
|
void text_restore_state(void);
|
2020-04-21 19:27:05 +03:00
|
|
|
|
2020-11-20 21:55:18 +03:00
|
|
|
void text_double_buffer(bool state);
|
|
|
|
void text_double_buffer_flush(void);
|
|
|
|
|
2021-08-16 19:02:28 +03:00
|
|
|
uint64_t text_context_size(void);
|
|
|
|
void text_context_save(uint64_t ptr);
|
|
|
|
void text_context_restore(uint64_t ptr);
|
2021-08-16 21:56:39 +03:00
|
|
|
void text_full_refresh(void);
|
2021-08-16 19:02:28 +03:00
|
|
|
|
2019-05-30 16:59:25 +03:00
|
|
|
#endif
|