c++, ncurses