improved ncurses input window