web-vue sol console escape sequences

Jian Zhang zhangjian.3032 at bytedance.com
Thu Jun 23 23:32:35 AEST 2022


Hi team;
   On the web view, I use the sol console, I hit an issue, the terminal
cannot determine the key (F5-F12) that I pressed.
   From the host console, I use the "showkey -a" command to capture the
keys that pressed.
Here are some results,  F1-F4 are normal, but F5-F12 are the same
```
^[P      27 0033 0x1b  ==> f1
         80 0120 0x50
^[Q      27 0033 0x1b   ==> f2
         81 0121 0x51
^[R      27 0033 0x1b.  ==> f3
         82 0122 0x52
^[S      27 0033 0x1b. ==> f4
         83 0123 0x53
^[~      27 0033 0x1b. ==> f5
        126 0176 0x7e
^[~      27 0033 0x1b. ==> f6
        126 0176 0x7e
^[~      27 0033 0x1b. == >f7
        126 0176 0x7e
``
 In putty, the result is the same at the beginning. After setting up the
keypod, they are different, and the result is what I want.
It might relate to `xterm.js  escape sequences`, but I don't know how to do
it, do you know? Thanks.

Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20220623/4c08548f/attachment.htm>


More information about the openbmc mailing list