Repository: incubator-guacamole-server Updated Branches: refs/heads/master 79b3b1029 -> 0e5498fc8
GUACAMOLE-278: Add support for xterm's bright SGR colors (90-97 and 100-107). Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/2a91e2ff Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/2a91e2ff Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/2a91e2ff Branch: refs/heads/master Commit: 2a91e2ff2debebf55f3a50805006cf6e462e30ab Parents: a040228 Author: Michael Jumper <[email protected]> Authored: Sun Apr 23 17:22:47 2017 -0700 Committer: Michael Jumper <[email protected]> Committed: Wed Apr 26 21:06:08 2017 -0700 ---------------------------------------------------------------------- src/terminal/terminal_handlers.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/2a91e2ff/src/terminal/terminal_handlers.c ---------------------------------------------------------------------- diff --git a/src/terminal/terminal_handlers.c b/src/terminal/terminal_handlers.c index 8e83fb1..840cd1c 100644 --- a/src/terminal/terminal_handlers.c +++ b/src/terminal/terminal_handlers.c @@ -967,6 +967,18 @@ int guac_terminal_csi(guac_terminal* term, unsigned char c) { term->current_attributes.background = term->default_char.attributes.background; + /* Intense foreground */ + else if (value >= 90 && value <= 97) + term->current_attributes.foreground = + guac_terminal_palette[value - 90 + + GUAC_TERMINAL_FIRST_INTENSE]; + + /* Intense background */ + else if (value >= 100 && value <= 107) + term->current_attributes.background = + guac_terminal_palette[value - 100 + + GUAC_TERMINAL_FIRST_INTENSE]; + } break;
