It also needs CONFIG_PDCURSES_MULTITHREAD or there's no PDC_ctx_free() definition
Now examples compile and work although in flashing mode with minicom in VT102 mode I'll fix that later Thanks again Grr El vie, 22 ene 2021 a las 14:35, Ken Pettit (<petti...@gmail.com>) escribió: > Looks like changing nuttx/pdcdisp.c:840 from "sp" to just "s" was the > only compile error. Though going through the exercise made me remember > that you also need to select: > > Application Configuration --> Graphics Support --> pdcurses --> Input > Devices --> Terminal Input > > Otherwise you don't have any input device for pdcurses. > > Ken > > > On 1/22/21 11:31 AM, Grr wrote: > > Thank you for your response > > > > I searched menuconfig according to your instructions and found it. > > Compilation crashed with > > > > nuttx/pdcdisp.c:840:19: error: 'sp' undeclared (first use in this > > function); did you mean 's'? > > > > but it's a matter of debugging it. Maybe a lacking option, I'll research > it > > > > Thanks again > > Grr > > > > > > El vie, 22 ene 2021 a las 13:11, Ken Pettit (<petti...@gmail.com>) > escribió: > > > >> Grr, > >> > >> Actually, pdcurses has a mode that will work over serial using > >> System->Termcurses. This is a terminal based extension to pdcurses that > >> I added a few years back. It supports VT-100 / ANSI escape codes. I > >> haven't tested it in the Apache NuttX framework to validate it still > >> works though. > >> > >> If you don't define CONFIG_SYSTEM_TERMCURSES, then yes, you will get an > >> error about the graphic fb creation. > >> > >> Ken > >> > >> On 1/22/21 11:02 AM, Grr wrote: > >>> Hello all > >>> > >>> Is there a way to have formatted text output over serial? I want to > >> create > >>> some testing utility that runs from nsh and has some screen > organization > >> to > >>> ease use > >>> > >>> I tested pdcurses examples but they seem to depend on fb (haven't > >> analyzed > >>> code) and all exited or crashed with "initscr(): Unable to create SP" > >>> > >>> Is there a builtin way to do such thing? > >>> > >>> TIA > >>> Grr > >>> > >> > >