aboutsummaryrefslogtreecommitdiffstats
path: root/vt100
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-22 11:35:50 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-22 11:35:50 -0400
commit4afd275b89be802582e1b4dd665411e18f30336d (patch)
tree67d8c96da2ef220d27acf703dbac7f1d1edd404f /vt100
parent1921191b4951a6517788634fc51dedffbff9195d (diff)
downloadlibvt100-python-4afd275b89be802582e1b4dd665411e18f30336d.tar.gz
libvt100-python-4afd275b89be802582e1b4dd665411e18f30336d.zip
rename a bunch of methods
Diffstat (limited to 'vt100')
-rw-r--r--vt100/__init__.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/vt100/__init__.py b/vt100/__init__.py
index a07755d..5948696 100644
--- a/vt100/__init__.py
+++ b/vt100/__init__.py
@@ -169,21 +169,21 @@ class vt100(object):
def process(self, string):
return vt100_raw.process_string(addressof(self._screen), string)
- def get_string_formatted(self, row_start, col_start, row_end, col_end):
+ def window_contents(self, row_start, col_start, row_end, col_end):
row_start = min(max(row_start, 0), self._rows - 1)
col_start = min(max(col_start, 0), self._cols - 1)
row_end = min(max(row_end, 0), self._rows - 1)
col_end = min(max(col_end, 0), self._cols - 1)
- return vt100_raw.get_string_formatted(
+ return vt100_raw.get_string_plaintext(
addressof(self._screen), row_start, col_start, row_end, col_end
).decode('utf-8')
- def get_string_plaintext(self, row_start, col_start, row_end, col_end):
+ def window_contents_formatted(self, row_start, col_start, row_end, col_end):
row_start = min(max(row_start, 0), self._rows - 1)
col_start = min(max(col_start, 0), self._cols - 1)
row_end = min(max(row_end, 0), self._rows - 1)
col_end = min(max(col_end, 0), self._cols - 1)
- return vt100_raw.get_string_plaintext(
+ return vt100_raw.get_string_formatted(
addressof(self._screen), row_start, col_start, row_end, col_end
).decode('utf-8')
@@ -194,7 +194,7 @@ class vt100(object):
vt100_raw.cell_at(addressof(self._screen), row, col)
)
- def cursor_pos(self):
+ def cursor_position(self):
pos = self._screen._grid.contents._cur
return pos.row, pos.col
@@ -212,25 +212,25 @@ class vt100(object):
else:
return icon_name_str[:self._screen._icon_name_len].decode('utf-8')
- def default_fgcolor(self):
+ def fgcolor(self):
return self._screen._attrs._fgcolor.color()
- def default_bgcolor(self):
+ def bgcolor(self):
return self._screen._attrs._bgcolor.color()
- def all_default_attrs(self):
+ def all_attrs(self):
return self._screen._attrs._attrs
- def default_bold(self):
+ def bold(self):
return self._screen._attrs._bold != 0
- def default_italic(self):
+ def italic(self):
return self._screen._attrs._italic != 0
- def default_underline(self):
+ def underline(self):
return self._screen._attrs._underline != 0
- def default_inverse(self):
+ def inverse(self):
return self._screen._attrs._inverse != 0
def hide_cursor(self):