diff options
Diffstat (limited to 'include/mercury/kernel/terminal.hpp')
-rw-r--r-- | include/mercury/kernel/terminal.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/mercury/kernel/terminal.hpp b/include/mercury/kernel/terminal.hpp new file mode 100644 index 0000000..b9d9976 --- /dev/null +++ b/include/mercury/kernel/terminal.hpp @@ -0,0 +1,30 @@ +#ifndef MERCURY_KERNEL_TERMINAL_HPP +#define MERCURY_KERNEL_TERMINAL_HPP + +#include <cstdint> + +namespace mercury::kernel::terminal { + + extern uint8_t *termfont; + extern uint64_t termfont_len; + + void init_terminal(); + + extern int width; + extern int height; + + extern int cursor_x; + extern int cursor_y; + + extern framebuffer::color bg_color; + extern framebuffer::color fg_color; + + void put_char(char ch); + + void put_string_sz(const char *str); + + void put_int_decimal(uint64_t n, bool with_commas = true); + +} + +#endif |