kernel/vga.h

25 lines
569 B
C
Raw Normal View History

2023-06-14 20:40:50 +03:00
#ifndef HEADER_VGA
#define HEADER_VGA
2023-06-13 09:45:04 +03:00
enum vga_color {
VGA_COLOR_BLACK = 0,
VGA_COLOR_BLUE = 1,
VGA_COLOR_GREEN = 2,
VGA_COLOR_CYAN = 3,
VGA_COLOR_RED = 4,
VGA_COLOR_MAGENTA = 5,
VGA_COLOR_ORANGE = 6,
VGA_COLOR_GREY = 7,
VGA_COLOR_GRAY = 7,
};
void cls(void);
void vga_init(enum vga_color fg, enum vga_color bg);
void vga_write(const char* text);
void vga_write_color( const char* text, enum vga_color fg, enum vga_color bg);
void vga_write_line(const char* text);
void vga_write_line_color( const char* text, enum vga_color fg, enum vga_color bg);
2023-06-14 20:40:50 +03:00
#endif