1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

Kernel: Port VirtualConsole to LibVT :^)

Unfortunately this drops the feature of preserving VGA buffer contents.

Resolves https://github.com/SerenityOS/serenity/issues/2399
This commit is contained in:
Sergey Bugaev 2020-05-27 00:35:14 +03:00 committed by Andreas Kling
parent 620697d924
commit f11270e7ce
6 changed files with 136 additions and 450 deletions

View file

@ -143,7 +143,7 @@ extern "C" [[noreturn]] void init()
new SerialDevice(SERIAL_COM4_ADDR, 67);
VirtualConsole::initialize();
tty0 = new VirtualConsole(0, VirtualConsole::AdoptCurrentVGABuffer);
tty0 = new VirtualConsole(0);
new VirtualConsole(1);
VirtualConsole::switch_to(0);