mlterm (TERM=xterm) sends "\eOQ" by default if F2 is pressed.
Do you mean hnb doesn't recognize F2 key ?
If mlterm send "\e" alone, please show me your configuration in ~/.mlterm/key or ~/.mlterm/termcap.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
kf1-kf4 terminfo capability of $TERM environmental variable defines sequence which F1-F4 key outputs.
Following command shows the sequence when F2 is pressed.
$ infocmp $TERM|grep kf2
For example, F2 is "\eOQ" in most cases if TERM=xterm , while it is "\e[11~" if TERM=rxvt.
mlterm assumes TERM=xterm by default, so F2 outputs "\eOQ" on mlterm.
If you use a value except "xterm" for TERM environmental variable, start mlterm with --term option which automatically changes sequence mlterm outputs when F1-F4 is pressed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
mlterm (TERM=xterm) sends "\eOQ" by default if F2 is pressed.
Do you mean hnb doesn't recognize F2 key ?
If mlterm send "\e" alone, please show me your configuration in ~/.mlterm/key or ~/.mlterm/termcap.
It does send ^[OQ but that sends escape in mlterm. In rxvt showkeys shows ^[[12~ which sends F2.
key
Alt+c="proto:copy"
Alt+v="proto:paste"
termcap
*:kD=\E[3~:kb=^?
xterm:kD=\E[3~:kb=^?:ut
Last edit: Peter Schroeder 2018-06-02
I was able to work around it. F1-F4 were all wrong. I added this to termcap
k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~
F5-F12 are correct. Would this be a typo in the ncurses terminfo package? This seems to have something to do with X11R6 and XFree86.
Also, running GNU screen without the above fix, fixes it too while in screen.
Last edit: Peter Schroeder 2018-06-04
kf1-kf4 terminfo capability of $TERM environmental variable defines sequence which F1-F4 key outputs.
Following command shows the sequence when F2 is pressed.
$ infocmp $TERM|grep kf2
For example, F2 is "\eOQ" in most cases if TERM=xterm , while it is "\e[11~" if TERM=rxvt.
mlterm assumes TERM=xterm by default, so F2 outputs "\eOQ" on mlterm.
If you use a value except "xterm" for TERM environmental variable, start mlterm with --term option which automatically changes sequence mlterm outputs when F1-F4 is pressed.