Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
except ImportError: import json | ||
if "win32" in sys.platform: | ||
import colorama | ||
colorama.init() | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
import re | ||
import tempfile | ||
import subprocess | ||
|
@@ -141,7 +142,5 @@ def get_text_from_editor(config, template=""): | |
|
||
def colorize(string): | ||
"""Returns the string wrapped in cyan ANSI escape""" | ||
if "win32" in sys.platform: | ||
return colorama.Fore.CYAN + string + colorama.Fore.RESET | ||
return u"\033[36m{}\033[39m".format(string) | ||
This comment has been minimized.
Sorry, something went wrong.
maebert
|
||
|
Very good, thanks!