icat: Fix temp files not being deleted when transmitting using escape codes
This commit is contained in:
parent
cb04deef63
commit
304f21e79d
@ -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…
x
Reference in New Issue
Block a user