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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/termcast_server/termcast.py b/termcast_server/termcast.py
index 28be7a0..743274b 100644
--- a/termcast_server/termcast.py
+++ b/termcast_server/termcast.py
@@ -67,11 +67,14 @@ class Handler(object):
for i in range(0, self.rows):
term.append([])
for j in range(0, self.cols):
- contents = self.vt.cell(i, j).contents()
+ cell = self.vt.cell(i, j)
+ contents = cell.contents()
if len(contents) == 0:
contents = " "
term[i].append({
"contents": contents,
+ "fgcolor": cell.fgcolor().color(),
+ "bgcolor": cell.bgcolor().color(),
})
return term