aboutsummaryrefslogtreecommitdiffstats
path: root/vt100
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-20 11:29:45 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-20 11:29:45 -0400
commit2a0176c80035ac0abfc25b61b7c8b2da5a8d5e80 (patch)
tree873f60bbe7e2af12497fdd4bd780ad6c259dd0d1 /vt100
parent7739fef5e8bb6672a473a7b96f24ec72589b3758 (diff)
downloadlibvt100-python-2a0176c80035ac0abfc25b61b7c8b2da5a8d5e80.tar.gz
libvt100-python-2a0176c80035ac0abfc25b61b7c8b2da5a8d5e80.zip
cell_at takes row, col
Diffstat (limited to 'vt100')
-rw-r--r--vt100/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/vt100/__init__.py b/vt100/__init__.py
index 3d36d3d..9cc19fd 100644
--- a/vt100/__init__.py
+++ b/vt100/__init__.py
@@ -195,10 +195,10 @@ class vt100(object):
self.vt, row_start, col_start, row_end, col_end
)
- def cell(self, x, y):
- if x < 0 or x >= self.cols or y < 0 or y >= self.rows:
+ def cell(self, row, col):
+ if row < 0 or row >= self.rows or col < 0 or col >= self.cols:
return None
- return vt100_cell.from_address(vt100_raw.cell_at(self.vt, x, y))
+ return vt100_cell.from_address(vt100_raw.cell_at(self.vt, row, col))
def cursor_pos(self):
pos = self.screen._grid.contents._cur