added no-color code to end of ansi output
This commit is contained in:
parent
a92322b794
commit
fedab1a585
2
ascii.py
2
ascii.py
|
@ -72,6 +72,8 @@ def pixels_to_chars(image, scale="ascii", color_code=None):
|
||||||
char = prefix + char
|
char = prefix + char
|
||||||
new_row += char
|
new_row += char
|
||||||
chars.append(new_row)
|
chars.append(new_row)
|
||||||
|
if color_code == "ansi":
|
||||||
|
chars.append("\033[0m")
|
||||||
return "\n".join(chars)
|
return "\n".join(chars)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user