mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-28 03:41:41 +00:00
icat: Fix temp files not being deleted when transmitting using escape codes
This commit is contained in:
parent
cb04deef63
commit
304f21e79d
1 changed files with 2 additions and 0 deletions
|
|
@ -134,6 +134,8 @@ def show(outfile, width, height, fmt, transmit_mode='t', align='center'):
|
|||
else:
|
||||
with open(outfile, 'rb') as f:
|
||||
data = f.read()
|
||||
if transmit_mode == 't':
|
||||
os.unlink(outfile)
|
||||
if fmt == 100:
|
||||
cmd['S'] = len(data)
|
||||
write_chunked(cmd, data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue