3 typedef unsigned short vga_attribute;
5 #define VGA_COLOR_BLACK 0
6 #define VGA_COLOR_BLUE 1
7 #define VGA_COLOR_GREEN 2
8 #define VGA_COLOR_CYAN 3
9 #define VGA_COLOR_RED 4
10 #define VGA_COLOR_MAGENTA 5
11 #define VGA_COLOR_BROWN 6
12 #define VGA_COLOR_LIGHT_GREY 7
13 #define VGA_COLOR_DARK_GREY 8
14 #define VGA_COLOR_LIGHT_BLUE 9
15 #define VGA_COLOR_LIGHT_GREEN 10
16 #define VGA_COLOR_LIGHT_CYAN 11
17 #define VGA_COLOR_LIGHT_RED 12
18 #define VGA_COLOR_LIGHT_MAGENTA 13
19 #define VGA_COLOR_LIGHT_BROWN 14
20 #define VGA_COLOR_WHITE 15
23 tty_init(void* vga_buf);
26 tty_set_buffer(void* vga_buf);
29 tty_set_theme(vga_attribute fg, vga_attribute bg);
32 tty_put_char(char chr);
35 tty_put_str(char* str);
44 tty_clear_line(unsigned int y);
47 tty_set_cpos(unsigned int x, unsigned int y);
50 tty_get_cpos(unsigned int* x, unsigned int* y);
53 #endif /* __LUNAIX_TTY_H */