From 14b364588be59a89facc939a9d0060f8aa2cdaa1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 14 Sep 2014 20:54:04 -0400 Subject: dereference this pointer automatically --- termcast.py | 2 +- vt100.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/termcast.py b/termcast.py index 171980d..f94f5c7 100644 --- a/termcast.py +++ b/termcast.py @@ -15,7 +15,7 @@ class Handler(object): term = '' for i in range(0, 24): for j in range(0, 80): - term += self.vt.cell(i, j).contents.contents() + term += self.vt.cell(i, j).contents() term += "\n" return term[:-1] diff --git a/vt100.py b/vt100.py index db3509c..b6ec1a9 100644 --- a/vt100.py +++ b/vt100.py @@ -77,4 +77,4 @@ class vt100(object): return vt100_process_string(self.vt, string, len(string)) def cell(self, x, y): - return vt100_cell_at(self.vt, x, y) + return vt100_cell_at(self.vt, x, y).contents -- cgit v1.2.3-54-g00ecf