GUACAMOLE-470: Reset character attributes on terminal reset.

The character attributes such as foreground/background colors should be
reset as well when performing a terminal reset.
This commit is contained in:
Jim Chen 2018-05-16 00:13:07 -04:00
parent 03d9c51b5d
commit 6da9236ffd

View File

@ -180,6 +180,9 @@ void guac_terminal_reset(guac_terminal* term) {
term->tab_interval = 8;
memset(term->custom_tabs, 0, sizeof(term->custom_tabs));
/* Reset character attributes */
term->current_attributes = term->default_char.attributes;
/* Reset display palette */
guac_terminal_display_reset_palette(term->display);