summaryrefslogtreecommitdiff
path: root/Source/Kernel/VTManager/ScrollableVT.class.h
blob: ce31225cb2129165f9e5282662da93bcb28a750b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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;

	void updateCursor();
	void redraw();
	void scroll();

	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 keyPress(keypress_t kp);
};

#endif