blob: ec67e7e9513a91ae5a6212a8d50e814044b7786d (
plain) (
tree)
|
|
#ifndef DEF_DEV_DISPLAY_H
#define DEF_DEV_DISPLAY_H
#include <vfs/node.h>
#define TC_BLACK 0
#define TC_BLUE 1
#define TC_GREEN 2
#define TC_TURQUOISE 3
#define TC_RED 4
#define TC_PURPLE 5
#define TC_BROWN 6
#define TC_LIGHTGRAY 7
#define TC_MAKE_LIGHT 8
#define TC_MAKE_DARK (~8)
#define TC_WHITE 15
class vt;
class display : public node {
public:
vt *connected_vt;
display(node* parent) : node(parent, FT_DEV) {
dev_type = DT_DISPLAY;
connected_vt = 0;
}
virtual ~display() {}
virtual display* as_display() { return this; }
virtual int text_w() = 0;
virtual int text_h() = 0;
virtual void text_setcsr(int l, int c, bool visible) = 0;
virtual void text_put(int l, int c, int ch, uint8_t fgcolor, uint8_t bgcolor) = 0;
virtual void text_scroll(int n, uint8_t fgcolor, uint8_t bgcolor) = 0;
};
#endif
|