summaryrefslogtreecommitdiff
path: root/Source/Applications/SampleApps/cxxdemo.cpp
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-18 17:17:36 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-18 17:17:36 +0200
commite589a45295a871f38d4a1d1f23b370b612f99be5 (patch)
treeb59f1190633368d78b23d78e011c99fa8fa3cc90 /Source/Applications/SampleApps/cxxdemo.cpp
parent323e12f1f9ab33df15dcfed210e807561d98fa8c (diff)
downloadMelon-e589a45295a871f38d4a1d1f23b370b612f99be5.tar.gz
Melon-e589a45295a871f38d4a1d1f23b370b612f99be5.zip
Syscall interface starts being implemented !
Diffstat (limited to 'Source/Applications/SampleApps/cxxdemo.cpp')
-rw-r--r--Source/Applications/SampleApps/cxxdemo.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/Applications/SampleApps/cxxdemo.cpp b/Source/Applications/SampleApps/cxxdemo.cpp
index 5d95d28..af16599 100644
--- a/Source/Applications/SampleApps/cxxdemo.cpp
+++ b/Source/Applications/SampleApps/cxxdemo.cpp
@@ -1,10 +1,14 @@
#include <Syscall/Syscall.wtf.h>
#include <WChar.class.h>
+#include <VirtualTerminal.class.h>
int main() {
+ VirtualTerminal x = VirtualTerminal::get();
for (char c = ' '; c <= 'z'; c++) {
- syscall(0xFFFFFF02, (unsigned int)c);
- putch(c);
+ sleep((u32int)c / 4);
+ x.put(c);
}
- putch('\n');
+ x.put("\n");
+ x.writeHex(0xDEADBEEF);
+ x.put("\n");
}