X-Git-Url: http://git.dujemihanovic.xyz/projects?a=blobdiff_plain;f=include%2Farch%2Fx86%2Ftty.h;h=22247379ede32e1615192c1558f5bc05318991b0;hb=3568adbeba1623a28e80fa3680a2286fd48b0ed3;hp=988d73822e47f01d6a638842d0f83b3c4e4871f2;hpb=9ef60208fec0c672248023d467f57eecd6e7214f;p=nameless-os.git diff --git a/include/arch/x86/tty.h b/include/arch/x86/tty.h index 988d738..2224737 100644 --- a/include/arch/x86/tty.h +++ b/include/arch/x86/tty.h @@ -1,5 +1,28 @@ #ifndef X86_TTY_H #define X86_TTY_H + +#include + +#define VGA_COLOR_BLACK 0x0 +#define VGA_COLOR_BLUE 0x1 +#define VGA_COLOR_GREEN 0x2 +#define VGA_COLOR_TEAL 0x3 +#define VGA_COLOR_DARK_RED 0x4 +#define VGA_COLOR_MAGENTA 0x5 +#define VGA_COLOR_BROWN 0x6 +#define VGA_COLOR_LIGHT_GRAY 0x7 +#define VGA_COLOR_DARK_GRAY 0x8 +#define VGA_COLOR_PURPLE 0x9 +#define VGA_COLOR_LIME 0xA +#define VGA_COLOR_CYAN 0xB +#define VGA_COLOR_BRIGHT_RED 0xC +#define VGA_COLOR_PINK 0xD +#define VGA_COLOR_YELLOW 0xE +#define VGA_COLOR_WHITE 0xF + extern void screen_clear(void); -extern void kprint(const char *string); +extern void kprint(const char *string, uint8_t color); +extern void kprintb(const uint8_t byte); +extern void kprintw(const uint16_t word); +extern void kprintd(const uint32_t dword); #endif