You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Richard Lancaster (Jira)" <ji...@apache.org> on 2022/06/07 15:59:00 UTC
[jira] [Commented] (GUACAMOLE-943) F1-F24 keys send incorrect control sequence for SSH/Telnet
[ https://issues.apache.org/jira/browse/GUACAMOLE-943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17551170#comment-17551170 ]
Richard Lancaster commented on GUACAMOLE-943:
---------------------------------------------
> That, or there are multiple standards for the control sequences sent for the function keys, and we may need to support each.
[~mjumper] Your hunch is correct, there are quite a few standards dating back to the video terminal days.
http://aperiodic.net/phil/archives/Geekery/term-function-keys.html summarises a few.
Putty documentation has a concise rundown of the expected functionality but doesn't match that to a terminal (it only reports as xterm): https://the.earth.li/~sgtatham/putty/0.77/htmldoc/Chapter4.html#config-keyboard
In my case, our user needs both (using putty's terminology) "ESC [n~" and "linux".
Guacamole appears to follow the "linux" standard.
> F1-F24 keys send incorrect control sequence for SSH/Telnet
> ----------------------------------------------------------
>
> Key: GUACAMOLE-943
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-943
> Project: Guacamole
> Issue Type: Bug
> Components: Terminal
> Affects Versions: 1.1.0
> Environment: RHEL 7
> Reporter: John Filo
> Priority: Minor
>
> We are using Guacamole with SSH connections and we have an application that requires Shift-Fn keys mapped through for Shift-Fn1 to Shift-Fn24.
> On the target SSH server, if I use `showkey -a` it shows that Fn1 and Shift-Fn1 map through as:
> {code:java}
> sh-4.2$ showkey -a
> Press any keys - Ctrl-D will terminate this program
> Fn1 is
> ^[OP 27 0033 0x1b
> 79 0117 0x4f
> 80 0120 0x50
> Shift-Fn1 is
> ^[[1;2P 27 0033 0x1b
> 91 0133 0x5b
> 49 0061 0x31
> 59 0073 0x3b
> 50 0062 0x32
> 80 0120 0x50{code}
> Whereas, via Guacamole Client, if I use `showkey -a` it shows that Fn1 and Shift-Fn1 map through as:
> {code:java}
> sh-4.2$ showkey -a
> Press any keys - Ctrl-D will terminate this program
> Fn1 is
> ^[[[A 27 0033 0x1b
> 91 0133 0x5b
> 91 0133 0x5b
> 65 0101 0x41
> Shift-Fn1 is
> ^[[[A 27 0033 0x1b
> 91 0133 0x5b
> 91 0133 0x5b
> 65 0101 0x41
> {code}
> As you can see, using Guacamole Client the Shift key doesn't seem to be mapped through with Fn1.
> Where/How are keys mapped through for the SSH protocol?
> Is it possible to add Shift-Fn[1-24] key mappings?
--
This message was sent by Atlassian Jira
(v8.20.7#820007)