aboutsummaryrefslogtreecommitdiffstats
path: root/vt100.py
diff options
context:
space:
mode:
Diffstat (limited to 'vt100.py')
-rw-r--r--vt100.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/vt100.py b/vt100.py
index de7c045..b066220 100644
--- a/vt100.py
+++ b/vt100.py
@@ -53,6 +53,9 @@ class vt100_cell(Structure):
new_prototype = CFUNCTYPE(c_void_p, c_int, c_int)
vt100_new = new_prototype(("vt100_screen_new", libvt100))
+set_window_size_prototype = CFUNCTYPE(None, c_void_p, c_int, c_int)
+vt100_set_window_size = set_window_size_prototype(("vt100_screen_set_window_size", libvt100))
+
process_string_prototype = CFUNCTYPE(c_int, c_void_p, c_char_p, c_size_t)
vt100_process_string = process_string_prototype(("vt100_screen_process_string", libvt100))
@@ -70,6 +73,9 @@ class vt100(object):
def __del__(self):
vt100_delete(self.vt)
+ def set_window_size(self, rows, cols):
+ vt100_set_window_size(self.vt, rows, cols)
+
def process(self, string):
return vt100_process_string(self.vt, string, len(string))