vga.h (591B)
1 #ifndef _VGA_H_ 2 #define _VGA_H_ 3 4 #include <u.h> 5 6 enum vga_color { 7 VGA_BLACK = 0, 8 VGA_BLUE, 9 VGA_GREEN, 10 VGA_CYAN, 11 VGA_RED, 12 VGA_MAGENTA, 13 VGA_BROWN, 14 VGA_LIGHT_GREY, 15 VGA_DARK_GREY, 16 VGA_LIGHT_BLUE, 17 VGA_LIGHT_GREEN, 18 VGA_LIGHT_CYAN, 19 VGA_LIGHT_RED, 20 VGA_LIGHT_MAGENTA, 21 VGA_LIGHT_BROWN, 22 VGA_WHITE, 23 }; 24 25 void vga_clear(u_int8_t, u_int8_t); 26 void vga_set_color(u_int8_t, u_int8_t); 27 void vga_putc(char); 28 void vga_puts(const char *); 29 void vga_curs_enable(u_int8_t, u_int8_t); 30 void vga_curs_disable(void); 31 void vga_curs_setpos(int, int); 32 u_int16_t vga_curs_getpos(void); 33 34 #endif /* _VGA_H_ */