summaryrefslogtreecommitdiff
path: root/Source/Kernel/VTManager/VirtualTerminal-sc.proto.cpp
blob: e0c6e8d19340affd9f58ed98b28c36cd7a14e51c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "VirtualTerminal.proto.h"

u32int VirtualTerminal::writeHexSC(u32int number) {
	writeHex(number);
	return 0;
}

u32int VirtualTerminal::writeSC(u32int wat) {
	write(String::unserialize(wat));
	return 0;
}

u32int VirtualTerminal::writeDecSC(u32int n_hi, u32int n_lo) {
	s64int n = ((u64int)n_hi << 32) | n_lo;
	writeDec(n);
	return 0;
}

u32int VirtualTerminal::putSC(u32int code) {
	put(WChar(code));
	return 0;
}

u32int VirtualTerminal::readLineSC() {
	return readLine().serialize();
}