Multiple terminals with FabGL

benedettoproietti
Posts: 2
Joined: Sat Nov 25, 2023 5:14 pm

Multiple terminals with FabGL

Postby benedettoproietti » 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?

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: Multiple terminals with FabGL

Postby lbernstone » Sun Nov 26, 2023 2:09 am

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.

Who is online

Users browsing this forum: No registered users and 49 guests