refactor: improve on scrolling experience in lunaix console
[lunaix-os.git] / lunaix-os / includes / lunaix / tty / console.h
index 2c9e990eddb1e21135c3df9fcde44e255486fc24..24d088fbd3f6665580e53fe8c4e32112292b319c 100644 (file)
@@ -1,16 +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;
-    unsigned int chars;
+    struct fifo_buf output;
+    struct fifo_buf input;
+    size_t wnd_start;
+    size_t lines;
 };
 
 #endif /* __LUNAIX_CONSOLE_H */