summaryrefslogtreecommitdiff
path: root/Source/Library/Userland/Binding
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-21 17:33:12 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-21 17:33:12 +0200
commitdc37d089e8ca98ff2dc8a320c21fc3ac0a87eaa6 (patch)
tree8ddb55ee633a70ea298a812d5ffec97373631534 /Source/Library/Userland/Binding
parent768ada13917aeda373e6ff5fee21faf90c963746 (diff)
parent7708a5f335c6b3256290775e7f5deb43b681bf03 (diff)
downloadMelon-dc37d089e8ca98ff2dc8a320c21fc3ac0a87eaa6.tar.gz
Melon-dc37d089e8ca98ff2dc8a320c21fc3ac0a87eaa6.zip
Merge branch 'usermode_syscalls'
Diffstat (limited to 'Source/Library/Userland/Binding')
-rw-r--r--Source/Library/Userland/Binding/VirtualTerminal.class.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Library/Userland/Binding/VirtualTerminal.class.h b/Source/Library/Userland/Binding/VirtualTerminal.class.h
index 9d438c6..06a8dd7 100644
--- a/Source/Library/Userland/Binding/VirtualTerminal.class.h
+++ b/Source/Library/Userland/Binding/VirtualTerminal.class.h
@@ -7,8 +7,12 @@
class VirtualTerminal : public RessourceCaller {
public:
- static VirtualTerminal get() {
- u32int id = RessourceCaller::sCall(VTIF_OBJTYPE, VTIF_SGETPRVT);
+ static VirtualTerminal getIn() {
+ u32int id = RessourceCaller::sCall(VTIF_OBJTYPE, VTIF_SGETPRINVT);
+ return VirtualTerminal(id);
+ }
+ static VirtualTerminal getOut() {
+ u32int id = RessourceCaller::sCall(VTIF_OBJTYPE, VTIF_SGETPROUTVT);
return VirtualTerminal(id);
}
VirtualTerminal(u32int id) : RessourceCaller(id, VTIF_OBJTYPE) {}
@@ -46,3 +50,5 @@ class VirtualTerminal : public RessourceCaller {
inline VirtualTerminal& operator<<(s64int i) { writeDec(i); return *this; }
inline VirtualTerminal& operator<<(u32int i) { writeHex(i); return *this; }
};
+
+extern VirtualTerminal invt, outvt;