mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09: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
Notes:
sideshowbarker
2024-07-19 17:33:13 +09:00
Author: https://github.com/fraang
Commit: d8fa8c5f82
Pull-request: https://github.com/SerenityOS/serenity/pull/2804
3 changed files with 9 additions and 3 deletions
|
@ -144,7 +144,9 @@ extern "C" [[noreturn]] void init()
|
|||
|
||||
VirtualConsole::initialize();
|
||||
tty0 = new VirtualConsole(0);
|
||||
new VirtualConsole(1);
|
||||
for (unsigned i = 1; i < s_max_virtual_consoles; i++) {
|
||||
new VirtualConsole(i);
|
||||
}
|
||||
VirtualConsole::switch_to(0);
|
||||
|
||||
Process::initialize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue