mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
Make vterm UTF-8
This commit is contained in:
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user