diff options
author | Liav A <liavalb@gmail.com> | 2021-05-14 16:39:28 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-16 19:58:33 +0200 |
commit | dbccfc3281231e0109b275028cfe93791383ef36 (patch) | |
tree | eabaa3cd3f0069a615a79f5c5c22edebca8ad1b4 /Kernel/TTY/VirtualConsole.h | |
parent | 2e565f1b8a048b3f5770b67cebec21c229e3e237 (diff) | |
download | serenity-dbccfc3281231e0109b275028cfe93791383ef36.zip |
Kernel: Print all logbuffer from ConsoleDevice to debug Virtual Console
Diffstat (limited to 'Kernel/TTY/VirtualConsole.h')
-rw-r--r-- | Kernel/TTY/VirtualConsole.h | 6 |
1 files changed, 5 insertions, 1 deletions
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<VirtualConsole> create(size_t index); + static NonnullRefPtr<VirtualConsole> create_with_preset_log(size_t index, const CircularQueue<char, 16384>&); 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<char, 16384>&); // ^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(); |