diff options
author | jaseg <s@jaseg.de> | 2013-05-06 13:59:03 +0200 |
---|---|---|
committer | jaseg <s@jaseg.de> | 2013-05-06 13:59:03 +0200 |
commit | 38e5857925092c32647cdf5c19845dbf07eac007 (patch) | |
tree | 4a3b85c111c47c2da1af943d4a31fdf6394c4a33 /pixelterm.py | |
parent | 0c071feaddc6c85606aa77861aa2544d0fe9eaa1 (diff) | |
download | pixelterm-38e5857925092c32647cdf5c19845dbf07eac007.tar.gz pixelterm-38e5857925092c32647cdf5c19845dbf07eac007.tar.bz2 pixelterm-38e5857925092c32647cdf5c19845dbf07eac007.zip |
Improve gifterm and pixelterm background handling
Diffstat (limited to 'pixelterm.py')
-rwxr-xr-x | pixelterm.py | 2 |
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__': |