You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2018/05/27 15:50:29 UTC

[2/6] guacamole-server git commit: GUACAMOLE-470: Reset character attributes on terminal reset.

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.


Project: http://git-wip-us.apache.org/repos/asf/guacamole-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-server/commit/6da9236f
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-server/tree/6da9236f
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-server/diff/6da9236f

Branch: refs/heads/master
Commit: 6da9236ffdd0fce61a08fc2e0f86ba4642215993
Parents: 03d9c51
Author: Jim Chen <nc...@mozilla.com>
Authored: Wed May 16 00:13:07 2018 -0400
Committer: Jim Chen <nc...@mozilla.com>
Committed: Sat May 26 23:18:27 2018 -0400

----------------------------------------------------------------------
 src/terminal/terminal.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/guacamole-server/blob/6da9236f/src/terminal/terminal.c
----------------------------------------------------------------------
diff --git a/src/terminal/terminal.c b/src/terminal/terminal.c
index 50d24be..7096add 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);