mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 00:38:10 +02:00
Fix use-python not working reliably with SSH kitten
This commit is contained in:
@@ -117,6 +117,7 @@ with NamedTemporaryFile() as tmp:
|
|||||||
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user