This commit is contained in:
Kovid Goyal 2025-01-27 21:13:45 +05:30
parent 1f33677c1a
commit 4f0f9b9aff
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -94,7 +94,7 @@ def run_shell(self, shell='zsh', rc='', cmd='', setup_env=None):
try:
if self.with_kitten:
cmd = [kitten_exe(), 'run-shell', '--shell', shlex.join(cmd)]
pty = self.create_pty(cmd, cwd=home_dir, env=env)
pty = self.create_pty(cmd, cwd=home_dir, env=env, cols=180)
i = 10
while i > 0 and not pty.screen_contents().strip():
pty.process_input_from_child()