03-30-2012 10:46 AM
NDK is supposed to include ncurses. Would anyone be able to point me to a simple example of where ncurses is used in NDK?
If I even add ncurses.h to a new project template (Minimal Screen Application) I get the following error during build:
"ncurses.h:114: error: two or more data types in declaration specifiers"
Any suggestions on how to use ncurses in NDK would be much appreciated.
03-30-2012 03:08 PM
I have got rid of the error by not including the header:
The printw("Hello World !!!");/* Print Hello World */ only prints to the console in QNX Momentics IDE. I still need to find out how to print on the tablet.
And, I guess I have to find out how to make getch() or a viable alternative work in ncurses as well.
03-30-2012 04:42 PM
04-02-2012 08:17 AM
Thank you but since ncurses library is loaded in PB I assumed it is usable for more than just listing in PB advertising. So far I have found it doesn't work with:
and it only outputs within Momentics. I can't get it to display anything on the PB.
Does ncurses provide anything useful on the PB, if so, what and how is ncurses used?
04-02-2012 10:03 AM
I wrote a simple console display app that uses the freetype/opengl es code in bbutils to display text and also added a rudimentary ansi/vt100 parser. It was more work than i expected, but now i can use ncurses . As a proof of concept I can run ninvaders in the console.
So indeed ncurses does work but you need to provide some sort of framework to actually parse and display the output. I assume you could use Qt to create the terminal window but at that point you don't really need ncurses.
ncurses would mostly be useful for porting existing ncurses based applications.