blob: bed743ee134fdbeb4410f00824fbd58e43119db2 (
plain) (
tree)
|
|
#ifndef DEF_MONITOR_H
#define DEF_MONITOR_H
#include <types.h>
#include "display.h"
class vgatxt : public display {
public:
vgatxt(node *parent);
virtual ~vgatxt() {}
// as a FS node
virtual size_t get_size();
virtual int read(size_t offset, size_t len, char *buffer);
virtual int write(size_t offset, size_t len, char *buffer);
virtual int dev_control(char *data);
// as a display
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
|