aboutsummaryrefslogtreecommitdiffstats
path: root/vt100
diff options
context:
space:
mode:
Diffstat (limited to 'vt100')
-rw-r--r--vt100/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vt100/__init__.py b/vt100/__init__.py
index 0f07318..a07755d 100644
--- a/vt100/__init__.py
+++ b/vt100/__init__.py
@@ -176,7 +176,7 @@ class vt100(object):
col_end = min(max(col_end, 0), self._cols - 1)
return vt100_raw.get_string_formatted(
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):
row_start = min(max(row_start, 0), self._rows - 1)
@@ -185,7 +185,7 @@ class vt100(object):
col_end = min(max(col_end, 0), self._cols - 1)
return vt100_raw.get_string_plaintext(
addressof(self._screen), row_start, col_start, row_end, col_end
- )
+ ).decode('utf-8')
def cell(self, row, col):
if row < 0 or row >= self._rows or col < 0 or col >= self._cols: