Re: Setting TERM environment variable before starting the application

2022-03-01 Thread Alan Carvalho de Assis
I don't know if it was modified recently but it was optional to run as separated thread. Very nice Michael, it is really good when porting programs and libraries from Linux are easy to do. So, currently we have litesql, pdcurses, ncurses, etc as examples of porting from Linux. Maybe it could be p

Re: Setting TERM environment variable before starting the application

2022-03-01 Thread Michael Jung
Hi Alan, thanks for your feedback. According to the documentation board_late_initialize() is running in a separate thread (But probably not in its own task group?!). So would the environment variable still be copied to the application? I am running the default ncurses from Linux. There really

Re: Setting TERM environment variable before starting the application

2022-03-01 Thread Alan Carvalho de Assis
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

Setting TERM environment variable before starting the application

2022-03-01 Thread Michael Jung
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 CONF