GUACAMOLE-278: Add support for xterm's bright SGR colors (90-97 and 100-107).

This commit is contained in:
Michael Jumper 2017-04-23 17:22:47 -07:00
parent a04022883c
commit 2a91e2ff2d

View File

@ -967,6 +967,18 @@ int guac_terminal_csi(guac_terminal* term, unsigned char c) {
term->current_attributes.background = term->current_attributes.background =
term->default_char.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; break;