aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-14 20:54:04 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-14 20:54:04 -0400
commit14b364588be59a89facc939a9d0060f8aa2cdaa1 (patch)
tree32c593961231e003c074e39aad86e15a37933159
parent375d514870d6999dc47c768084a26f20bf0bc7aa (diff)
downloadpython-termcast-server-14b364588be59a89facc939a9d0060f8aa2cdaa1.tar.gz
python-termcast-server-14b364588be59a89facc939a9d0060f8aa2cdaa1.zip
dereference this pointer automatically
-rw-r--r--termcast.py2
-rw-r--r--vt100.py2
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