Fix use-python not working reliably with SSH kitten

This commit is contained in:
Kovid Goyal 2022-02-03 19:58:10 +05:30
parent 53589c3954
commit 2fd8ef389e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -117,6 +117,7 @@
if os.path.exists('/usr/share/misc/terminfo.cdb'): if os.path.exists('/usr/share/misc/terminfo.cdb'):
tname += '.cdb' tname += '.cdb'
tmp.write(binascii.unhexlify('{terminfo}')) 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) p = subprocess.Popen(['tic', '-x', '-o', os.path.expanduser('~/' + tname), tmp.name], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate() stdout, stderr = p.communicate()
if p.wait() != 0: if p.wait() != 0: