refactor: improve on scrolling experience in lunaix console
[lunaix-os.git] / lunaix-os / includes / lunaix / tty / console.h
index 9eb4ea08192f98db5035608d8c800ed20b4ab79b..24d088fbd3f6665580e53fe8c4e32112292b319c 100644 (file)
@@ -1,15 +1,16 @@
 #ifndef __LUNAIX_CONSOLE_H
 #define __LUNAIX_CONSOLE_H
 
-#include <lunaix/ds/fifobuf.h>
+#include <lunaix/ds/fifo.h>
 #include <lunaix/timer.h>
 
 struct console
 {
     struct lx_timer* flush_timer;
-    struct fifo_buffer buffer;
-    unsigned int erd_pos;
-    unsigned int lines;
+    struct fifo_buf output;
+    struct fifo_buf input;
+    size_t wnd_start;
+    size_t lines;
 };
 
 #endif /* __LUNAIX_CONSOLE_H */