summaryrefslogtreecommitdiff
path: root/Source/Kernel/VTManager/FileVT.class.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/VTManager/FileVT.class.h')
-rw-r--r--Source/Kernel/VTManager/FileVT.class.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/Kernel/VTManager/FileVT.class.h b/Source/Kernel/VTManager/FileVT.class.h
new file mode 100644
index 0000000..61f4d6f
--- /dev/null
+++ b/Source/Kernel/VTManager/FileVT.class.h
@@ -0,0 +1,24 @@
+#ifndef DEF_FILEVT_CLASS_H
+#define DEF_FILEVT_CLASS_H
+
+#include <VFS/TextFile.class.h>
+#include <VTManager/VirtualTerminal.proto.h>
+
+class FileVT : public VirtualTerminal {
+ protected:
+ TextFile m_file;
+ bool m_isWriting; //True = write only, false = read only
+ String m_buffer;
+ u32int m_bufferPos;
+
+ public:
+ FileVT(String filename, u8int mode = FM_READ, FSNode* start = 0, u8int encoding = UE_UTF8);
+
+ bool isBoxed() { return false; }
+ void setCursorCol(u32int col);
+
+ void put(WChar c, bool updatecsr = true);
+ Kbd::keypress_t getKeypress(bool show = true, bool block = true);
+};
+
+#endif