Improve gifterm and pixelterm background handling
This commit is contained in:
parent
0c071feadd
commit
38e5857925
4 changed files with 23 additions and 10 deletions
|
|
@ -73,7 +73,7 @@ def termify_pixels(img):
|
|||
if colbot == coltop:
|
||||
c,te,be = cf,te,te
|
||||
out += te(coltop) + be(colbot) + c
|
||||
out = out.rstrip() + '\n'
|
||||
out = (out.rstrip() if bg == (0,0,0,0) else out) + '\n'
|
||||
return out[:-1] + reset_sequence + '\n'
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue