From 6da9236ffdd0fce61a08fc2e0f86ba4642215993 Mon Sep 17 00:00:00 2001 From: Jim Chen Date: Wed, 16 May 2018 00:13:07 -0400 Subject: [PATCH] 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. --- src/terminal/terminal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/terminal/terminal.c b/src/terminal/terminal.c index 50d24be4..7096add8 100644 --- a/src/terminal/terminal.c +++ b/src/terminal/terminal.c @@ -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);