Make vterm UTF-8

This commit is contained in:
Foo 2015-09-13 17:12:21 +03:00
parent 3fca2f8d02
commit 6bbcb610c7

@ -116,6 +116,7 @@ def get_functions(lib):
('cell', ctypes.POINTER(VTermScreenCell_s))
)),
vterm_free=(None, (('vt', VTerm_p),)),
vterm_set_utf8=(None, (('vt', VTerm_p), ('is_utf8', ctypes.c_int))),
)
@ -173,6 +174,7 @@ class VTerm(object):
def __init__(self, lib, dim):
self.functions = get_functions(lib)
self.vt = self.functions.vterm_new(dim.rows, dim.cols)
self.functions.vterm_set_utf8(self.vt, 1)
self.vtscreen = VTermScreen(self.functions, self.functions.vterm_obtain_screen(self.vt))
self.vtscreen.reset(True)