From ac10c1a29c44b0cb29960cd0f792c7361bc430ce Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Fri, 18 May 2012 19:40:11 +0200 Subject: Added some stuff. --- src/kernel/ui/vt.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/kernel/ui/vt.cpp') 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) { -- cgit v1.2.3