started ncurses logic