From e2ef15ca99a79ac02457ddf18ffbf9c5c0720ee9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 6 Oct 2014 14:59:37 -0400 Subject: add foreground and background colors to the web interface --- termcast_server/termcast.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'termcast_server/termcast.py') 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 -- cgit v1.2.3-54-g00ecf