mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 23:14:55 +02:00
...
This commit is contained in:
@@ -13,7 +13,7 @@ import time
|
|||||||
from pty import CHILD, fork
|
from pty import CHILD, fork
|
||||||
|
|
||||||
from kitty.constants import kitten_exe
|
from kitty.constants import kitten_exe
|
||||||
from kitty.fast_data_types import Screen
|
from kitty.fast_data_types import Screen, safe_pipe
|
||||||
from kitty.utils import read_screen_size
|
from kitty.utils import read_screen_size
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ def run_parsing_benchmark(cell_width: int = 10, cell_height: int = 20, scrollbac
|
|||||||
fcntl.ioctl(master_fd, termios.TIOCSWINSZ, s)
|
fcntl.ioctl(master_fd, termios.TIOCSWINSZ, s)
|
||||||
|
|
||||||
write_buf = b''
|
write_buf = b''
|
||||||
r_pipe, w_pipe = os.pipe2(os.O_CLOEXEC | os.O_NONBLOCK)
|
r_pipe, w_pipe = safe_pipe(True)
|
||||||
class ToChild:
|
class ToChild:
|
||||||
def write(self, x: bytes | str) -> None:
|
def write(self, x: bytes | str) -> None:
|
||||||
nonlocal write_buf
|
nonlocal write_buf
|
||||||
|
|||||||
Reference in New Issue
Block a user