diff --git a/ascii.py b/ascii.py index c03ff58..8927844 100755 --- a/ascii.py +++ b/ascii.py @@ -142,7 +142,11 @@ def colorize(chars, image, code): new_row += prefix[code] + char_color(image.getpixel((k,j)), code) new_row += chars[j][k] chars[j] = new_row - return "\n".join(chars) + + chars = "\n".join(chars) + if code == "ansi": + chars += "\033[0m" + return chars def image_to_ascii(image, reverse=False, colors=None):