From 2a0176c80035ac0abfc25b61b7c8b2da5a8d5e80 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 20 Oct 2014 11:29:45 -0400 Subject: cell_at takes row, col --- vt100/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vt100') 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 -- cgit v1.2.3