c++ ncurses nibbles