summaryrefslogtreecommitdiff
path: root/src/kernel/ui/vt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/ui/vt.cpp')
-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) {