From 38e5857925092c32647cdf5c19845dbf07eac007 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 6 May 2013 13:59:03 +0200 Subject: Improve gifterm and pixelterm background handling --- pixelterm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pixelterm.py') 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__': -- cgit