2023-07-16 06:54:32 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
2023-07-17 23:34:52 +00:00
|
|
|
#include <drivers/vga.h>
|
2023-07-16 06:54:32 +00:00
|
|
|
|
2023-07-17 23:34:52 +00:00
|
|
|
#define TERM_W VGA_TEXT_W
|
|
|
|
#define TERM_H VGA_TEXT_H
|
2023-07-16 06:54:32 +00:00
|
|
|
|
|
|
|
void term_init(void);
|
|
|
|
void term_reset(void);
|
2023-07-17 23:34:52 +00:00
|
|
|
void term_setfg(enum vga_color color);
|
|
|
|
void term_setbg(enum vga_color color);
|
2023-07-16 06:54:32 +00:00
|
|
|
void term_clear(void);
|
|
|
|
void term_scroll(int lines);
|
|
|
|
void term_setpos(uint8_t x, uint8_t y);
|
|
|
|
|
|
|
|
uint32_t term_save(void);
|
|
|
|
void term_load(uint32_t state);
|
|
|
|
|
|
|
|
uint16_t term_save_col(void);
|
|
|
|
void term_load_col(uint16_t color);
|
|
|
|
|
|
|
|
bool term_newline(void);
|
2023-07-16 23:56:56 +00:00
|
|
|
|
|
|
|
void term_flush(void);
|