#pragma once #include "types.h" #include "drivers/graphics/driver.h" #define VGA_BLACK 0x0 #define VGA_BLUE 0x1 #define VGA_GREEN 0x2 #define VGA_CYAN 0x3 #define VGA_RED 0x4 #define VGA_MAGENTA 0x5 #define VGA_BROWN 0x6 #define VGA_WHITE 0x7 #define VGA_GRAY 0x8 #define VGA_LIGHT_BLUE 0x9 #define VGA_LIGHT_GREEN 0xA #define VGA_LIGHT_CYAN 0xB #define VGA_LIGHT_RED 0xC #define VGA_LIGHT_MAGENTA 0xD #define VGA_YELLOW 0xE #define VGA_PURE_WHITE 0xF void clear_screen(char fill, u8 color); inline u8 vga_color(u8 bg, u8 fg) { return (bg << 4) | (fg & 0x0F); } void putchar(int x, int y, u8 msg, u8 color); void write_string(int x, int y, const char* msg, u8 color); void init(); void scroll(u8 lines); extern GraphicsDriver vga_driver;