mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
Kernel: Ensure there are all VirtualConsoles properly initialized
It is possible to switch to VirtualConsoles 1 to 4 via the shortcut ALT + [1-4]. Therefor the array of VirtualConsoles should be guaranteed to be initialized. Also add an constant for the maximum number of VirtualConsoles to guarantee consistency.
This commit is contained in:
parent
971a42a816
commit
d8fa8c5f82
3 changed files with 9 additions and 3 deletions
|
@ -33,6 +33,8 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
static constexpr unsigned s_max_virtual_consoles = 6;
|
||||
|
||||
class VirtualConsole final : public TTY
|
||||
, public KeyboardClient
|
||||
, public VT::TerminalClient {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue