From dbccfc3281231e0109b275028cfe93791383ef36 Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 14 May 2021 16:39:28 +0300 Subject: Kernel: Print all logbuffer from ConsoleDevice to debug Virtual Console --- Kernel/TTY/VirtualConsole.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Kernel/TTY/VirtualConsole.h') diff --git a/Kernel/TTY/VirtualConsole.h b/Kernel/TTY/VirtualConsole.h index 3ad2c0f703..c36bf5da17 100644 --- a/Kernel/TTY/VirtualConsole.h +++ b/Kernel/TTY/VirtualConsole.h @@ -74,6 +74,7 @@ public: public: static NonnullRefPtr create(size_t index); + static NonnullRefPtr create_with_preset_log(size_t index, const CircularQueue&); virtual ~VirtualConsole() override; @@ -85,7 +86,8 @@ public: void emit_char(char); private: - VirtualConsole(const unsigned index); + explicit VirtualConsole(const unsigned index); + VirtualConsole(const unsigned index, const CircularQueue&); // ^KeyboardClient virtual void on_key_pressed(KeyEvent) override; @@ -119,6 +121,8 @@ private: RecursiveSpinLock m_lock; private: + void initialize(); + void invalidate_cursor(size_t row); void clear(); -- cgit v1.2.3