[go: up one dir, main page]

Menu

#76 F2 sends Escape

v1.0 (example)
open
nobody
None
5
2018-06-14
2018-05-25
No

F2 sends Escape. I found this out when trying to save in hnb.

Debian Sid. mlterm 3.8.4.

Discussion

  • Araki Ken

    Araki Ken - 2018-06-02

    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.

     
  • Peter Schroeder

    Peter Schroeder - 2018-06-02

    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
  • Peter Schroeder

    Peter Schroeder - 2018-06-04

    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
  • Araki Ken

    Araki Ken - 2018-06-14

    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.

     

Log in to post a comment.