Hi Michael,

I think you could do it using the board late initialize, because it is
just after the board's drivers initialization and before the
application initialization.

So it will run before any ncurses initialization.

Did you mean you ported the default ncurses used on Linux or are you
using the pdcurses that Mr. Greg ported to NuttX some years ago?

BR,

Alan

On 3/1/22, Michael Jung <mij...@gmx.net> wrote:
> Hello,
>
> I am playing around with ncurses on NuttX and would like to set a TERM
> environment variable to xterm-256color via setenv() before the application
> is started (I would like to run unmodified ncurses example applications),
> but am not quite sure where this would best fit in.  It seems that
> CONFIG_BOARD_EARLY_INITIALIZE and board_early_initialize() would do the
> trick, but there is not a single board defconfig that is using this
> feature.  Any suggestions?
>
> Thanks!
> Michael
>

Reply via email to