GitHub user mike-jumper opened a pull request:
https://github.com/apache/incubator-guacamole-server/pull/86
GUACAMOLE-278: Add support for xterm's 256-color control codes
This change adds support for the codes used by xterm to set colors beyond
the normal 16 color terminal palette. Specifically:
* Set foreground to RGB color: `CSI 38 ; 2 ; R ; G ; B`
* Set foreground to 256-color palette index N: `CSI 38 ; 5 ; N`
* Set background to RGB color: `CSI 48 ; 2 ; R ; G ; B`
* Set background to 256-color palette index N: `CSI 48 ; 5 ; N`
See: http://invisible-island.net/xterm/ctlseqs/ctlseqs.html.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mike-jumper/incubator-guacamole-server
terminal-256
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-guacamole-server/pull/86.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #86
----
commit 48fc4afc5bb622ef98a340b31322114835b559fd
Author: Michael Jumper <[email protected]>
Date: 2017-04-23T18:02:25Z
GUACAMOLE-278: Copy terminal color values rather than referencing only by
palette index.
commit eaa71f5717c85424ada7d3f63cbff3ad58661361
Author: Michael Jumper <[email protected]>
Date: 2017-04-23T18:38:49Z
GUACAMOLE-278: Move terminal palette/color definitions into dedicated files.
commit 11bf6f05c426ff13aff3539f044bf9cba56ff4aa
Author: Michael Jumper <[email protected]>
Date: 2017-04-23T19:00:45Z
GUACAMOLE-278: Expand terminal palette to 256 entries. Use xterm colors for
entries 16 through 255.
commit 87fba523ee668c8f7f81d36d2df5c3c560aff8c9
Author: Michael Jumper <[email protected]>
Date: 2017-04-23T19:53:47Z
GUACAMOLE-278: Handle xterm 256-color SGR sequences.
commit bc15252c8375f81d8e60ab0660fd81cab096e4e0
Author: Michael Jumper <[email protected]>
Date: 2017-04-23T19:58:32Z
GUACAMOLE-278: Log unhandled/invalid sequences at DEBUG level. Ignore
unexpected characters in OSC.
commit 39d8586dabdf6a1d254fd2afc0ad22ca7a4f0898
Author: Michael Jumper <[email protected]>
Date: 2017-04-23T20:36:46Z
GUACAMOLE-278: Ignore 256-color SGR sequences which contain out-of-range
values.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---