[
https://issues.apache.org/jira/browse/GUACAMOLE-943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17557296#comment-17557296
]
luo commented on GUACAMOLE-943:
-------------------------------
We should send F1-F12 values depending on the terminal type, I tried F1 key on
SecureCRT (xterm) and actually sent ^[OP, when I changed the terminal type to
(Linux), sending F1 key actually sent ^[[[A, which would be better
But we switch terminal type always send linux keys (F1-F12)
in terminal.c
{code:java}
if (keysym == 0xFFBE || keysym == 0xFF91 || terminal_type = "Linux") return
guac_terminal_send_string(term, "\x1B[[A"); /* F1 */
if (keysym == 0xFFBE || keysym == 0xFF91 || terminal_type = "xterm") return
guac_terminal_send_string(term, "\x1BOP"); /* F1 */ {code}
> 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)