From fedab1a585636fc057eb6b3500929158e67fa796 Mon Sep 17 00:00:00 2001 From: iou1name Date: Sun, 24 Dec 2017 18:47:20 -0500 Subject: [PATCH] added no-color code to end of ansi output --- ascii.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ascii.py b/ascii.py index 9cee3bf..6b578be 100755 --- a/ascii.py +++ b/ascii.py @@ -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)