diff options
author | Alexis211 <alexis211@gmail.com> | 2009-10-20 18:10:29 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-10-20 18:10:29 +0200 |
commit | 866580161b826443bed3862b8315cefd505de37c (patch) | |
tree | 23c3f87fe43d82c47af01c908d8a056785f9217f /Source/Kernel/VTManager/VirtualTerminal-sc.proto.cpp | |
parent | 0cca2d68451849b5ea96a3620566fd0b42dde3c0 (diff) | |
download | Melon-866580161b826443bed3862b8315cefd505de37c.tar.gz Melon-866580161b826443bed3862b8315cefd505de37c.zip |
We now have call tables for ressources.
instead of adding calls to ressource in the constructor.
Diffstat (limited to 'Source/Kernel/VTManager/VirtualTerminal-sc.proto.cpp')
-rw-r--r-- | Source/Kernel/VTManager/VirtualTerminal-sc.proto.cpp | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/Source/Kernel/VTManager/VirtualTerminal-sc.proto.cpp b/Source/Kernel/VTManager/VirtualTerminal-sc.proto.cpp index e0c6e8d..0a4e14b 100644 --- a/Source/Kernel/VTManager/VirtualTerminal-sc.proto.cpp +++ b/Source/Kernel/VTManager/VirtualTerminal-sc.proto.cpp @@ -5,17 +5,18 @@ u32int VirtualTerminal::writeHexSC(u32int 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::writeSC(u32int wat) { + String *s = (String*)wat; + write(*s); + return 0; +} + u32int VirtualTerminal::putSC(u32int code) { put(WChar(code)); return 0; @@ -24,3 +25,22 @@ u32int VirtualTerminal::putSC(u32int code) { u32int VirtualTerminal::readLineSC() { return readLine().serialize(); } + +u32int VirtualTerminal::setColorSC(u32int x) { + setColor((x >> 8) & 0xFF, x & 0xFF); + return 0; +} + +u32int VirtualTerminal::setCursorLineSC(u32int l) { + setCursorLine(l); + return 0; +} + +u32int VirtualTerminal::setCursorColSC(u32int c) { + setCursorCol(c); + return 0; +} + +u32int VirtualTerminal::isBoxedSC() { + return (isBoxed() ? 1 : 0); +} |