summaryrefslogtreecommitdiff
path: root/src/kernel/ui/vt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/ui/vt.h')
-rw-r--r--src/kernel/ui/vt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/kernel/ui/vt.h b/src/kernel/ui/vt.h
index b4f3672..ebafe5f 100644
--- a/src/kernel/ui/vt.h
+++ b/src/kernel/ui/vt.h
@@ -28,7 +28,12 @@ class vt : public node {
void clear();
void writeStr(char* str);
void writeHex(uint32_t v);
- void writeDec(uint32_t v);
+ void writeDec(int v);
+ // shortcuts
+ vt& operator<< (char* str) { writeStr(str); return *this; }
+ vt& operator<< (uint32_t t) { writeHex(t); return *this; }
+ vt& operator<< (int i) { writeDec(i); return *this; }
+
int outputTo(display *display);