summaryrefslogtreecommitdiff
path: root/Source/Applications/SampleApps/cxxdemo.cpp
blob: 01644a82a86a17a7723f327ba62fe2ab3594ddc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <Syscall/Syscall.wtf.h>
#include <WChar.class.h>
#include <Binding/VirtualTerminal.class.h>
#include <Binding/Thread.class.h>

int main() {
	VirtualTerminal x = VirtualTerminal::get();
	String s = x.readLine();
	x.write(s);
	Thread t = Thread::get();
	for (char c = ' '; c <= 'z'; c++) {
		t.sleep((u32int)c / 4);
		x.put(c);
	}
	x.put("\n");
	x.write("Salut les gens ! c'est le progrès !!!\nLe boeuf mort est juste là : ");
	x.writeHex(0xDEADBEEF);
	x.put("\n");
}