From 2a91e2ff2debebf55f3a50805006cf6e462e30ab Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 23 Apr 2017 17:22:47 -0700 Subject: [PATCH] GUACAMOLE-278: Add support for xterm's bright SGR colors (90-97 and 100-107). --- src/terminal/terminal_handlers.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/terminal/terminal_handlers.c b/src/terminal/terminal_handlers.c index 8e83fb11..840cd1c9 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;