I successfully tested an application and it runs well. I forget to mention that you have also to edit the following section in the make file in the ncurses directory to be like this:
romfs: $(ROMFSINST) -e CONFIG_FMT_USE_FDPIC_ELF $(STAGEDIR)/usr/lib/libncurses.so.5 /lib/ mkdir -p $(ROMFSDIR)/usr/share/terminfo tic -x -s -e $(NCURSES_TERMS) -o $(ROMFSDIR)/usr/share/terminfo/ $(VER)/misc/terminfo.src $(ROMFSINST) -s tset /usr/bin/reset set -e ; \ for x in $(NCURSES_DEMOS) ; do \ $(ROMFSINST) -e CONFIG_USER_NCURSES_TESTS build-$(VER)/test/$$x /bin/ncurses-demo-$$x ; \
I'm so happy I'm so glad. From: Mostafa Ali <extra_brain@xxxxxxxxx> |
#include <ncurses.h>
#include <stdlib.h>
void bomb(int r);
int main(void)
{
initscr();
start_color();
init_pair(1,COLOR_BLACK,COLOR_RED);
init_pair(2,COLOR_BLUE,COLOR_BLACK);
attrset(COLOR_PAIR(1));
addstr("My name is Mr. Black!\n");
attrset(COLOR_PAIR(2));
addstr("My name is Mr. Blue!\n");
attrset(COLOR_PAIR(1));
addstr("How do you do?\n");
attrset(COLOR_PAIR(2));
addstr("How do I do ");
attron(A_BOLD);
addstr("what");
attroff(A_BOLD);
addch("?");
refresh();
getch();
endwin();
return 0;
}