a bit refactoring on kernel_init
[lunaix-os.git] / lunaix-os / includes / lunaix / tty / tty.h
index b470fdc501152d8eede0cd836fd1fbfa8bb4964b..5c03ca29a845a0d3e76986b4ca89679376f831ac 100644 (file)
@@ -1,4 +1,6 @@
-typedef unsigned short vga_atrributes; 
+#ifndef __LUNAIX_TTY_H
+#define __LUNAIX_TTY_H
+typedef unsigned short vga_attribute;
 
 #define VGA_COLOR_BLACK 0
 #define VGA_COLOR_BLUE 1
@@ -17,8 +19,35 @@ typedef unsigned short vga_atrributes;
 #define VGA_COLOR_LIGHT_BROWN 14
 #define VGA_COLOR_WHITE 15
 
-void tty_set_theme(vga_atrributes fg, vga_atrributes bg);
-void tty_put_char(char chr);
-void tty_put_str(char* str);
-void tty_scroll_up();
-void tty_clear();
\ No newline at end of file
+void 
+tty_init(void* vga_buf);
+
+void
+tty_set_buffer(void* vga_buf);
+
+void
+tty_set_theme(vga_attribute fg, vga_attribute bg);
+
+void
+tty_put_char(char chr);
+
+void
+tty_put_str(char* str);
+
+void
+tty_scroll_up();
+
+void
+tty_clear();
+
+void 
+tty_clear_line(unsigned int y);
+
+void
+tty_set_cpos(unsigned int x, unsigned int y);
+
+void
+tty_get_cpos(unsigned int* x, unsigned int* y);
+
+
+#endif /* __LUNAIX_TTY_H */