summaryrefslogtreecommitdiff
path: root/Source/Kernel/VTManager/FileVT.class.h
blob: ed3e2245593443633ac7b0b22f2f44ffc8fd36af (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
#ifndef DEF_FILEVT_CLASS_H
#define DEF_FILEVT_CLASS_H

#include <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