Nick Couchman commented on GUACAMOLE-269:

...I gather that there is something that both either the Linux terminal and/or 
SSH client, and the Windows PuTTY client, are providing to the SSH server on 
AIX that guides how it sets up the stty info, and that Guacamole (libssh2) is 
not providing this information...

Well, I think I've figured it out...


At that section of code, we have the following function call:

libssh2_channel_request_pty_ex(ssh_client->term_channel, "linux", 
sizeof("linux")-1, NULL, 0, ssh_client->term->term_width, 
ssh_client->term->term_height, 0, 0)

The fourth argument is the terminal mode, and the fifth the length of the 
terminal mode.  According to the SSH RFC 
(https://www.ietf.org/rfc/rfc4254.txt), OPCODE 3 is the "VERASE" code, and is 
used to send the erase code to the SSH client.  Since we're not sending 
anything, here, I believe that even defining that as a constant and sending ^? 
or ^H, whichever we prefer, will take care of 99% of the SSH issues, anyway, 
without even needing to provide configuration options for what Guacamole sends 
when you press backspace.

Now, I just have to figure out how to send format and send those opcodes...

> Add support for alternative backspace/delete control codes
> ----------------------------------------------------------
>                 Key: GUACAMOLE-269
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-269
>             Project: Guacamole
>          Issue Type: Improvement
>          Components: SSH, Telnet, Terminal
>            Reporter: Michael Jumper
>            Assignee: Nick Couchman
>            Priority: Minor
> {panel:bgColor=#FFFFEE}
> *The description of this issue was copied from 
> [GUAC-1003|https://glyptodon.org/jira/browse/GUAC-1003], an issue in the JIRA 
> instance used by the Guacamole project prior to its acceptance into the 
> Apache Incubator.*
> Comments, attachments, related issues, and history from prior to acceptance 
> *have not been copied* and can be found instead at the original issue.
> {panel}
> On some devices, such as Comware devices, the backspace and delete keys will 
> not work, as such devices use Ctrl-H or Ctrl-D for these respectively. 
> Guacamole should provide configuration options for SSH and telnet, such that 
> different control codes can be used for backspace/delete for the sake of 
> compatibility.

This message was sent by Atlassian JIRA

Reply via email to