Multiple terminals with FabGL
Posted: Sat Nov 25, 2023 5:21 pm
I have written a simple CLI that navigates the filesystem.
The CLI uses FabGL's Terminal, VGATextController and PS2Controller.
It works just fine.
I would like to use it to launch some applications. I tried "kilo", an open source text editor.
Kilo works just fine when I compile it alone.
But when I launch it from the CLI, I get problems.
Either it crashes or the program hangs somewhere in Keyboard::getNextVirtualKey().
When I launch Kilo, I pass to it the same VGATextController and PS2Controller used by the CLI.
For the Terminal, I tried several things: passing the same terminal, creating a new one at the beginning, creating a new one when I launch Kilo.
Nothing works.
Any idea?
The CLI uses FabGL's Terminal, VGATextController and PS2Controller.
It works just fine.
I would like to use it to launch some applications. I tried "kilo", an open source text editor.
Kilo works just fine when I compile it alone.
But when I launch it from the CLI, I get problems.
Either it crashes or the program hangs somewhere in Keyboard::getNextVirtualKey().
When I launch Kilo, I pass to it the same VGATextController and PS2Controller used by the CLI.
For the Terminal, I tried several things: passing the same terminal, creating a new one at the beginning, creating a new one when I launch Kilo.
Nothing works.
Any idea?