Thanks to both Cameron and Alan for your suggestions. The problem is solved simply by using curses.KEY_F2 (rather than F1.) I tried the virtual console but it resulted in bizarre characters. Don't know about "xterm or urxvt or aterm." I was under the impression that the Xfce terminal was in fact an "xterm." Alex