diff options
Diffstat (limited to 'Kernel/TTY')
-rw-r--r-- | Kernel/TTY/VirtualConsole.cpp | 8 | ||||
-rw-r--r-- | Kernel/TTY/VirtualConsole.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp index c33c20d4b6..2642cb240b 100644 --- a/Kernel/TTY/VirtualConsole.cpp +++ b/Kernel/TTY/VirtualConsole.cpp @@ -65,6 +65,14 @@ void VirtualConsole::initialize() s_active_console = -1; } +void VirtualConsole::set_graphical(bool graphical) +{ + if (graphical) + set_vga_start_row(0); + + m_graphical = graphical; +} + VirtualConsole::VirtualConsole(unsigned index, InitialContents initial_contents) : TTY(4, index) , m_index(index) diff --git a/Kernel/TTY/VirtualConsole.h b/Kernel/TTY/VirtualConsole.h index 6d66394445..222b86d596 100644 --- a/Kernel/TTY/VirtualConsole.h +++ b/Kernel/TTY/VirtualConsole.h @@ -49,7 +49,7 @@ public: static void initialize(); bool is_graphical() { return m_graphical; } - void set_graphical(bool graphical) { m_graphical = graphical; } + void set_graphical(bool graphical); private: // ^KeyboardClient |