diff --git a/copyparty/__init__.py b/copyparty/__init__.py index 2809857d..9a067f80 100644 --- a/copyparty/__init__.py +++ b/copyparty/__init__.py @@ -33,6 +33,7 @@ WINDOWS: Any = ( VT100 = "--ansi" in sys.argv or ( os.environ.get("NO_COLOR", "").lower() in ("", "0", "false") + and sys.stdout.isatty() and "--no-ansi" not in sys.argv and (not WINDOWS or WINDOWS >= [10, 0, 14393]) )