diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-20 11:29:45 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-20 11:29:45 -0400 |
commit | 2a0176c80035ac0abfc25b61b7c8b2da5a8d5e80 (patch) | |
tree | 873f60bbe7e2af12497fdd4bd780ad6c259dd0d1 /vt100/__init__.py | |
parent | 7739fef5e8bb6672a473a7b96f24ec72589b3758 (diff) | |
download | libvt100-python-2a0176c80035ac0abfc25b61b7c8b2da5a8d5e80.tar.gz libvt100-python-2a0176c80035ac0abfc25b61b7c8b2da5a8d5e80.zip |
cell_at takes row, col
Diffstat (limited to 'vt100/__init__.py')
-rw-r--r-- | vt100/__init__.py | 6 |
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 |