Fix #1832
This commit is contained in:
parent
49429b5f49
commit
38f73b9f5e
@ -1548,7 +1548,7 @@ static PyMethodDef module_methods[] = {
|
|||||||
{"add_timer", (PyCFunction)add_python_timer, METH_VARARGS, ""},
|
{"add_timer", (PyCFunction)add_python_timer, METH_VARARGS, ""},
|
||||||
{"remove_timer", (PyCFunction)remove_python_timer, METH_VARARGS, ""},
|
{"remove_timer", (PyCFunction)remove_python_timer, METH_VARARGS, ""},
|
||||||
METHODB(monitor_pid, METH_VARARGS),
|
METHODB(monitor_pid, METH_VARARGS),
|
||||||
{"set_iutf8", (PyCFunction)pyset_iutf8, METH_VARARGS, ""},
|
{"set_iutf8_winid", (PyCFunction)pyset_iutf8, METH_VARARGS, ""},
|
||||||
{NULL} /* Sentinel */
|
{NULL} /* Sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -180,7 +180,7 @@ class Child:
|
|||||||
self.forked = True
|
self.forked = True
|
||||||
master, slave = os.openpty() # Note that master and slave are in blocking mode
|
master, slave = os.openpty() # Note that master and slave are in blocking mode
|
||||||
remove_cloexec(slave)
|
remove_cloexec(slave)
|
||||||
fast_data_types.set_iutf8(master, True)
|
fast_data_types.set_iutf8_fd(master, True)
|
||||||
stdin, self.stdin = self.stdin, None
|
stdin, self.stdin = self.stdin, None
|
||||||
ready_read_fd, ready_write_fd = os.pipe()
|
ready_read_fd, ready_write_fd = os.pipe()
|
||||||
remove_cloexec(ready_read_fd)
|
remove_cloexec(ready_read_fd)
|
||||||
|
|||||||
@ -192,7 +192,7 @@ static PyMethodDef module_methods[] = {
|
|||||||
{"normal_tty", normal_tty, METH_VARARGS, ""},
|
{"normal_tty", normal_tty, METH_VARARGS, ""},
|
||||||
{"raw_tty", raw_tty, METH_VARARGS, ""},
|
{"raw_tty", raw_tty, METH_VARARGS, ""},
|
||||||
{"close_tty", close_tty, METH_VARARGS, ""},
|
{"close_tty", close_tty, METH_VARARGS, ""},
|
||||||
{"set_iutf8", (PyCFunction)pyset_iutf8, METH_VARARGS, ""},
|
{"set_iutf8_fd", (PyCFunction)pyset_iutf8, METH_VARARGS, ""},
|
||||||
{"thread_write", (PyCFunction)cm_thread_write, METH_VARARGS, ""},
|
{"thread_write", (PyCFunction)cm_thread_write, METH_VARARGS, ""},
|
||||||
{"parse_bytes", (PyCFunction)parse_bytes, METH_VARARGS, ""},
|
{"parse_bytes", (PyCFunction)parse_bytes, METH_VARARGS, ""},
|
||||||
{"parse_bytes_dump", (PyCFunction)parse_bytes_dump, METH_VARARGS, ""},
|
{"parse_bytes_dump", (PyCFunction)parse_bytes_dump, METH_VARARGS, ""},
|
||||||
|
|||||||
@ -279,7 +279,7 @@ class Window:
|
|||||||
|
|
||||||
# screen callbacks {{{
|
# screen callbacks {{{
|
||||||
def use_utf8(self, on):
|
def use_utf8(self, on):
|
||||||
get_boss().child_monitor.set_iutf8(self.id, on)
|
get_boss().child_monitor.set_iutf8_winid(self.id, on)
|
||||||
|
|
||||||
def focus_changed(self, focused):
|
def focus_changed(self, focused):
|
||||||
if focused:
|
if focused:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user