mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
icat: Fix temp files not being deleted when transmitting using escape codes
This commit is contained in:
@@ -134,6 +134,8 @@ def show(outfile, width, height, fmt, transmit_mode='t', align='center'):
|
|||||||
else:
|
else:
|
||||||
with open(outfile, 'rb') as f:
|
with open(outfile, 'rb') as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
|
if transmit_mode == 't':
|
||||||
|
os.unlink(outfile)
|
||||||
if fmt == 100:
|
if fmt == 100:
|
||||||
cmd['S'] = len(data)
|
cmd['S'] = len(data)
|
||||||
write_chunked(cmd, data)
|
write_chunked(cmd, data)
|
||||||
|
|||||||
Reference in New Issue
Block a user