summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-18 19:40:11 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-18 19:40:11 +0200
commitac10c1a29c44b0cb29960cd0f792c7361bc430ce (patch)
tree33466e227a0214d40de373b72c83a750dba29195 /src/kernel
parent478c691187fbc9ba4ccaacf92f57828eef20041c (diff)
downloadTCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.tar.gz
TCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.zip
Added some stuff.
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/ui/vt.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kernel/ui/vt.cpp b/src/kernel/ui/vt.cpp
index 2bd82ca..34dfbe9 100644
--- a/src/kernel/ui/vt.cpp
+++ b/src/kernel/ui/vt.cpp
@@ -25,7 +25,13 @@ void vt::put_at(int l, int c, int ch) {
text[l * w + c].fgcolor = fgcolor;
text[l * w + c].bgcolor = bgcolor;
text[l * w + c].ch = ch;
- if (output != 0) output->text_put(l, c, ch, fgcolor, bgcolor);
+ if (output != 0) {
+ if (output->connected_vt != this) {
+ output = 0;
+ } else {
+ output->text_put(l, c, ch, fgcolor, bgcolor);
+ }
+ }
}
void vt::put(int c) {