Comment 19 for bug 482623

Revision history for this message
Paul V. Stodghill (paul-stodghill) wrote :

I think that I can provide some more info. According to,

http://aperiodic.net/phil/archives/Geekery/term-function-keys.html

X11R6 xterm and XFree86 xterm produce difference keysequences for F1-F4(!). gnome-terminal and Terminal.app generate the same sequence as XFree86, but Terminal.app identifies itself as "xterm-color".

Workaround: I found that if I changes the default keybindings in Terminal.app for F1, etc. from ^[OP, etc. to ^[[11~, etc., then all of the F keys work within byobu _without_ changing $TERM. I.e., TERM == xterm-color.

Another data point. Open the native xterm under Apple's X11 (which generates the XFree86 keysequences),
- Run byobu (I'm using the version from homebrew). F1-F4 work.
- Exit byobu. "export TERM=xterm-color
- Run byobu. F1-F4 do _not_ work.

The difference lies in how byobu handles TERM==xterm and TERM==xterm-color.

HTH.

HTH.