Got this issue on termux (Android Linux terminal emulator) . Here it is the ENTIRE code:
#include <ncurses.h>
int main() {
initscr();
getch();
endwin();
}
I then compiled using this line:
g++ -lncurses prog.cpp
The package is ncurses-dev 6.1.20180331 (latest version)
P.S. even with refresh()
it doesn't work.