summaryrefslogtreecommitdiff
path: root/Source/Library/Userland/Binding/VirtualTerminal.class.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Library/Userland/Binding/VirtualTerminal.class.h')
-rw-r--r--Source/Library/Userland/Binding/VirtualTerminal.class.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Library/Userland/Binding/VirtualTerminal.class.h b/Source/Library/Userland/Binding/VirtualTerminal.class.h
index a7bb4c2..67683b8 100644
--- a/Source/Library/Userland/Binding/VirtualTerminal.class.h
+++ b/Source/Library/Userland/Binding/VirtualTerminal.class.h
@@ -2,6 +2,7 @@
#include <VirtualTerminal.iface.h>
+#include <String.class.h>
#include <WChar.class.h>
class VirtualTerminal : public RessourceCaller {
@@ -15,6 +16,16 @@ class VirtualTerminal : public RessourceCaller {
void writeHex(u32int number) {
doCall(VT_IFACE_WRITEHEX, number);
}
+ void writeDec(s64int number) {
+ doCall(VT_IFACE_WRITEDEC, (number >> 32), number);
+ }
+ void write(String s) {
+ Serialized a = s.serialize();
+ doCall(VT_IFACE_WRITE, a);
+ }
+ String readLine() {
+ return String::unserialize(doCall(VT_IFACE_READLINE));
+ }
void put(WChar c) {
doCall(VT_IFACE_PUT, c);