extend the ncurses tutorial. fix F1 (intercepted by tty).