[Tutor] Curses Python: F1 => Xfce Terminal documentation
Cameron Simpson
cs at cskk.id.au
Sat Nov 28 13:44:23 EST 2020
On 28Nov2020 16:56, alexkleider <alexkleider at protonmail.com> wrote:
>Thanks to both Cameron and Alan for your suggestions.
>The problem is solved simply by using curses.KEY_F2 (rather than F1.)
The Xfce terminal docs I cited suggested that F1 is intercepted, and
you'll never see F1 _inside_ the terminal unless you change the key
binding for "help", which seems possible.
>I tried the virtual console but it resulted in bizarre characters.
If you mean the non-X11 system console (unsure) that might be a font
issue.
>Don't know about "xterm or urxvt or aterm."
>I was under the impression that the Xfce terminal was in fact an
>"xterm."
I think not from the docs, again. You may well find that $TERM is set to
"xterm" or one of its colour variants so that your curses programmes use
a working terminfo entry, which maps capabilities like "clear screen"
and "move cursors" etc to the necessary escape sequences. But it looks
to be a distinct terminal emulator.
xterm and urxvt and aterm are all distinct other terminal emulators you
can also install.
Cheers,
Cameron Simpson <cs at cskk.id.au>
More information about the Tutor
mailing list