I'm running ncurses on c4droid on Android. Here, box()
works perfectly with window pointer of initscr()
but no box of newwin()
.
Code:
#include <ncurses.h>
int main() {
WINDOW * Win = initscr();
noecho();
crmode();
WINDOW * win = newwin(10, 10, 1, 1);
box(Win,0,0); // This works
box(win,0,0); // no output
wrefresh(win);
refresh();
getch();
endwin();
}