Page 1 of 1

Multiple terminals with FabGL

Posted: Sat Nov 25, 2023 5:21 pm
by benedettoproietti
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?

Re: Multiple terminals with FabGL

Posted: Sun Nov 26, 2023 2:09 am
by lbernstone
I don't know how kilo is setting up the keyboard there, but STDIN & STDOUT on esp32 are usually attached to the Serial device. You will need to figure out how it is expecting the input.