Problem with redundant enter/return solved without ncurses.