diff options
Diffstat (limited to 'src/kernel/dev/vgatxt.h')
-rw-r--r-- | src/kernel/dev/vgatxt.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/kernel/dev/vgatxt.h b/src/kernel/dev/vgatxt.h new file mode 100644 index 0000000..550d4ba --- /dev/null +++ b/src/kernel/dev/vgatxt.h @@ -0,0 +1,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 + |