summaryrefslogtreecommitdiff
path: root/src/kernel/dev/vgatxt.h
blob: 550d4ba27c2f58dfb66f798e84a82b4fed036fdb (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
#ifndef DEF_MONITOR_H
#define DEF_MONITOR_H

#include <types.h>

#include "display.h"

class vgatxt : public display {
	public:
	vgatxt(node *parent);
	virtual ~vgatxt() {}

	virtual int text_w();
	virtual int text_h();
	virtual void text_setcsr(int l, int c, bool visible);
	virtual void text_put(int l, int c, int ch, uint8_t fgcolor, uint8_t bgcolor);
	virtual void text_scroll(int n, uint8_t fgcolor, uint8_t bgcolor);
};

extern vgatxt *text_display;

#endif