41 lines
966 B
C
41 lines
966 B
C
enum VGA_FG_COLOR
|
|
{
|
|
VGA_FG_BLACK = 0x0,
|
|
VGA_FG_BLUE = 0x1,
|
|
VGA_FG_GREEN = 0x2,
|
|
VGA_FG_CYAN = 0x3,
|
|
VGA_FG_RED = 0x4,
|
|
VGA_FG_MAGENTA = 0x5,
|
|
VGA_FG_BROWN = 0x6,
|
|
VGA_FG_LIGHT_GRAY = 0x7,
|
|
VGA_FG_DARK_GRAY = 0x8,
|
|
VGA_FG_LIGHT_BLUE = 0x9,
|
|
VGA_FG_LIGHT_GREEN = 0xA,
|
|
VGA_FG_LIGHT_CYAN = 0xB,
|
|
VGA_FG_LIGHT_RED = 0xC,
|
|
VGA_FG_LIGHT_MAGENTA = 0xD,
|
|
VGA_FG_YELLOW = 0xE,
|
|
VGA_FG_WHITE = 0xF,
|
|
};
|
|
|
|
enum VGA_BG_COLOR
|
|
{
|
|
VGA_BG_BLACK = 0x0,
|
|
VGA_BG_BLUE = 0x1,
|
|
VGA_BG_GREEN = 0x2,
|
|
VGA_BG_CYAN = 0x3,
|
|
VGA_BG_RED = 0x4,
|
|
VGA_BG_MAGENTA = 0x5,
|
|
VGA_BG_BROWN = 0x6,
|
|
VGA_BG_LIGHT_GRAY = 0x7,
|
|
};
|
|
|
|
void print_init(void);
|
|
|
|
void print_newline(void);
|
|
|
|
void print(const char* string);
|
|
void println(const char* string);
|
|
|
|
void print_clr(const char* string, enum VGA_FG_COLOR fg_color, enum VGA_BG_COLOR bg_color);
|
|
void println_clr(const char* string, enum VGA_FG_COLOR fg_color, enum VGA_BG_COLOR bg_color); |