mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 01:22:12 +02:00
The maximum number of virtual consoles is determined at compile time, so we can pre-allocate that many slots, dodging some heap allocations. Furthermore, virtual consoles are never destroyed, so it's fine to simply store a raw pointer to the currently active one.