added no-color code to end of ansi output

This commit is contained in:
iou1name 2017-12-24 18:47:20 -05:00
parent a92322b794
commit fedab1a585

View File

@ -72,6 +72,8 @@ def pixels_to_chars(image, scale="ascii", color_code=None):
char = prefix + char
new_row += char
chars.append(new_row)
if color_code == "ansi":
chars.append("\033[0m")
return "\n".join(chars)