userspace fun: maze game and a new device to support it
[lunaix-os.git] / lunaix-os / includes / lunaix / tty / tty.h
index 518d3760a8def0797976d627417ddeb38b60400d..b4a847a27366d393651652661fa28fa18c550d4d 100644 (file)
@@ -1,5 +1,8 @@
 #ifndef __LUNAIX_TTY_H
 #define __LUNAIX_TTY_H
+
+#include <lunaix/ds/fifo.h>
+
 typedef unsigned short vga_attribute;
 
 #define VGA_COLOR_BLACK 0
@@ -31,8 +34,8 @@ tty_set_theme(vga_attribute fg, vga_attribute bg);
 vga_attribute
 tty_get_theme();
 
-size_t
-tty_flush_buffer(char* data, size_t pos, size_t limit, size_t buf_size);
+void
+tty_flush_buffer(struct fifo_buf* buf);
 
 void
 tty_clear_line(int line_num);
@@ -40,4 +43,7 @@ tty_clear_line(int line_num);
 void
 tty_put_str_at(char* str, int x, int y);
 
+void
+tty_set_cursor(u8_t x, u8_t y);
+
 #endif /* __LUNAIX_TTY_H */