fixed ncurses newline issue