Improve gifterm and pixelterm background handling

This commit is contained in:
jaseg 2013-05-06 13:59:03 +02:00
parent 0c071feadd
commit 38e5857925
4 changed files with 23 additions and 10 deletions

View file

@ -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__':