aboutsummaryrefslogtreecommitdiffstats
path: root/termcast_server/termcast.py
diff options
context:
space:
mode:
Diffstat (limited to 'termcast_server/termcast.py')
-rw-r--r--termcast_server/termcast.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/termcast_server/termcast.py b/termcast_server/termcast.py
index 8b6935d..58fa2ab 100644
--- a/termcast_server/termcast.py
+++ b/termcast_server/termcast.py
@@ -114,11 +114,21 @@ class Handler(object):
if cur_cell[key] != prev_cell[key]:
cell_changes[key] = cur_cell[key]
+ if "fgcolor" in cell_changes:
+ cell_changes["bgcolor"] = cur_cell["bgcolor"]
+ cell_changes["bold"] = cur_cell["bold"]
+ cell_changes["inverse"] = cur_cell["inverse"]
+
+ if "bgcolor" in cell_changes:
+ cell_changes["fgcolor"] = cur_cell["fgcolor"]
+ cell_changes["inverse"] = cur_cell["inverse"]
+
if "bold" in cell_changes:
cell_changes["fgcolor"] = cur_cell["fgcolor"]
- if "fgcolor" in cell_changes:
- cell_changes["bold"] = cur_cell["bold"]
+ if "inverse" in cell_changes:
+ cell_changes["fgcolor"] = cur_cell["fgcolor"]
+ cell_changes["bgcolor"] = cur_cell["bgcolor"]
return cell_changes