X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/97626136c186f33306ee477490f5de13f86227bf..e0ee3d449aacd33a84cb1f58961e55f9f06acb46:/lunaix-os/includes/lunaix/tty/tty.h diff --git a/lunaix-os/includes/lunaix/tty/tty.h b/lunaix-os/includes/lunaix/tty/tty.h new file mode 100644 index 0000000..b470fdc --- /dev/null +++ b/lunaix-os/includes/lunaix/tty/tty.h @@ -0,0 +1,24 @@ +typedef unsigned short vga_atrributes; + +#define VGA_COLOR_BLACK 0 +#define VGA_COLOR_BLUE 1 +#define VGA_COLOR_GREEN 2 +#define VGA_COLOR_CYAN 3 +#define VGA_COLOR_RED 4 +#define VGA_COLOR_MAGENTA 5 +#define VGA_COLOR_BROWN 6 +#define VGA_COLOR_LIGHT_GREY 7 +#define VGA_COLOR_DARK_GREY 8 +#define VGA_COLOR_LIGHT_BLUE 9 +#define VGA_COLOR_LIGHT_GREEN 10 +#define VGA_COLOR_LIGHT_CYAN 11 +#define VGA_COLOR_LIGHT_RED 12 +#define VGA_COLOR_LIGHT_MAGENTA 13 +#define VGA_COLOR_LIGHT_BROWN 14 +#define VGA_COLOR_WHITE 15 + +void tty_set_theme(vga_atrributes fg, vga_atrributes bg); +void tty_put_char(char chr); +void tty_put_str(char* str); +void tty_scroll_up(); +void tty_clear(); \ No newline at end of file