aboutsummaryrefslogtreecommitdiff
path: root/pixelterm.py
diff options
context:
space:
mode:
authorjaseg <s@jaseg.de>2013-05-06 13:59:03 +0200
committerjaseg <s@jaseg.de>2013-05-06 13:59:03 +0200
commit38e5857925092c32647cdf5c19845dbf07eac007 (patch)
tree4a3b85c111c47c2da1af943d4a31fdf6394c4a33 /pixelterm.py
parent0c071feaddc6c85606aa77861aa2544d0fe9eaa1 (diff)
downloadpixelterm-38e5857925092c32647cdf5c19845dbf07eac007.tar.gz
pixelterm-38e5857925092c32647cdf5c19845dbf07eac007.tar.bz2
pixelterm-38e5857925092c32647cdf5c19845dbf07eac007.zip
Improve gifterm and pixelterm background handling
Diffstat (limited to 'pixelterm.py')
-rwxr-xr-xpixelterm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pixelterm.py b/pixelterm.py
index d47d1a8..ab4409c 100755
--- a/pixelterm.py
+++ b/pixelterm.py
@@ -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__':