rulimine/common/drivers/vga_textmode.h

40 lines
1.1 KiB
C
Raw Normal View History

#ifndef __DRIVERS__VGA_TEXTMODE_H__
#define __DRIVERS__VGA_TEXTMODE_H__
2020-09-02 10:55:56 +03:00
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
void init_vga_textmode(size_t *rows, size_t *cols, bool managed);
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);
bool text_disable_cursor(void);
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);
bool text_scroll_disable(void);
void text_scroll_enable(void);
void text_move_character(size_t new_x, size_t new_y, size_t old_x, size_t old_y);
void text_scroll(void);
void text_revscroll(void);
void text_swap_palette(void);
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);
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);
#endif