summaryrefslogtreecommitdiff
path: root/Source/Kernel/VTManager/ScrollableVT.class.h
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-09-20 14:23:45 +0200
committerAlexis211 <alexis211@gmail.com>2009-09-20 14:23:45 +0200
commit1eb942c8a34166e43f43c843f09bb48ba40b65b2 (patch)
tree7567ef81880722ae42fa92aec1bd0a7703ac2a15 /Source/Kernel/VTManager/ScrollableVT.class.h
parenta43236e7017b6500e6563aa8654c8d8f56226615 (diff)
downloadMelon-1eb942c8a34166e43f43c843f09bb48ba40b65b2.tar.gz
Melon-1eb942c8a34166e43f43c843f09bb48ba40b65b2.zip
We now have scrollable virtual terminals !
Diffstat (limited to 'Source/Kernel/VTManager/ScrollableVT.class.h')
-rw-r--r--Source/Kernel/VTManager/ScrollableVT.class.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/Kernel/VTManager/ScrollableVT.class.h b/Source/Kernel/VTManager/ScrollableVT.class.h
new file mode 100644
index 0000000..fbc2c4c
--- /dev/null
+++ b/Source/Kernel/VTManager/ScrollableVT.class.h
@@ -0,0 +1,24 @@
+#ifndef DEF_SCROLLABLEVT_CLASS_H
+#define DEF_SCROLLABLEVT_CLASS_H
+
+#include <VTManager/SimpleVT.class.h>
+
+class ScrollableVT : public SimpleVT {
+ private:
+ vtchr **m_lines;
+ u32int m_keeprows;
+ u32int m_linesup;
+
+ public:
+ ScrollableVT(u32int rows, u32int cols, u32int keepRows, u8int fgcolor = 7, u8int bgcolor = 0);
+ virtual ~ScrollableVT();
+
+ virtual void putChar(u32int row, u32int col, WChar c);
+ void updateCursor();
+ void redraw();
+ void scroll();
+
+ void keyPress(Kbd::keypress_t kp);
+};
+
+#endif