From 2fd8ef389e4688288d326b8e13bfa6e835f9d3fa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 3 Feb 2022 19:58:10 +0530 Subject: [PATCH] Fix use-python not working reliably with SSH kitten --- kittens/ssh/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kittens/ssh/main.py b/kittens/ssh/main.py index 9052c0790..c3f8bbc9c 100644 --- a/kittens/ssh/main.py +++ b/kittens/ssh/main.py @@ -117,6 +117,7 @@ if os.path.exists('/usr/share/misc/terminfo.cdb'): tname += '.cdb' tmp.write(binascii.unhexlify('{terminfo}')) + tmp.flush() p = subprocess.Popen(['tic', '-x', '-o', os.path.expanduser('~/' + tname), tmp.name], stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = p.communicate() if p.wait() != 0: