X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/844a2c39e4bb2cc778dba7bd3aea21cb07483fad..fef29e9e993e62f025d8cbfeb6b8d51588083b7e:/lunaix-os/kernel/tty/tty.c diff --git a/lunaix-os/kernel/tty/tty.c b/lunaix-os/kernel/tty/tty.c index 1ad0dd4..cc70087 100644 --- a/lunaix-os/kernel/tty/tty.c +++ b/lunaix-os/kernel/tty/tty.c @@ -1,17 +1,17 @@ -#include +#include #include -#include +#include #include #define TTY_WIDTH 80 #define TTY_HEIGHT 25 -vga_attribute* tty_vga_buffer = (vga_attribute*)VGA_BUFFER_PADDR; +static vga_attribute* tty_vga_buffer = (vga_attribute*)VGA_BUFFER_PADDR; -vga_attribute tty_theme_color = VGA_COLOR_BLACK; +static vga_attribute tty_theme_color = VGA_COLOR_BLACK; -uint32_t tty_x = 0; -uint16_t tty_y = 0; +static uint32_t tty_x = 0; +static uint16_t tty_y = 0; void tty_init(void* vga_buf) { tty_vga_buffer = (vga_attribute*)vga_buf; @@ -104,4 +104,9 @@ void tty_get_cpos(unsigned int* x, unsigned int* y) { *x = tty_x; *y = tty_y; +} + +vga_attribute +tty_get_theme() { + return tty_theme_color; } \ No newline at end of file