From ab291b9eef6ed5c8ab59b5652f676178941d5ce5 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sun, 16 May 2021 17:48:40 -0700 Subject: [PATCH] only force enable colors when running on windows --- jc/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jc/cli.py b/jc/cli.py index d2bd4c74..2695fb0c 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -492,7 +492,8 @@ def main(): pass # enable colors for Windows cmd.exe terminal - os.system('') + if sys.platform.startswith('win32'): + os.system('') # parse magic syntax first: e.g. jc -p ls -al magic_options = []