Windows --force-color sometimes works and sometime failed
Author: gigi206Created Apr 7, 2020Updated Sep 29, 2026
Labelsbugseverity-lowConfirmed
Description of Issue
I use salt-call state.apply --force-color on Windows.
Sometimes I have colors and sometimes not:
?[0;32mlocal:?[0;0m
?[0;36m
Summary for local
--------------?[0;0m
?[0;32mSucceeded: 100?[0;0m
?[0;36mFailed: 0?[0;0m
?[0;36m--------------
Total states run: 100?[0;0m
?[0;36mTotal run time: 32.332 s?[0;0mSteps to Reproduce Issue
$ salt-call state.apply --force-colorVersions Report (3000.1)
Salt: 3000-n/a-5c450f3b
Dependency Versions:
cffi: 1.12.2
cherrypy: 17.4.1
dateutil: 2.8.0
docker-py: Not Installed
gitdb: 2.0.5
gitpython: 2.1.10
Jinja2: 2.10.1
libgit2: Not Installed
M2Crypto: Not Installed
Mako: 1.0.7
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: 2.19
pycrypto: Not Installed
pycryptodome: 3.8.1
pygit2: Not Installed
Python: 3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)]
python-gnupg: 0.4.4
PyYAML: 5.1.2
PyZMQ: 18.0.1
smmap: 2.0.5
timelib: 0.2.4
Tornado: 4.5.3
ZMQ: 4.3.1
System Versions:
dist:
locale: cp1252
machine: AMD64
release: 10
system: Windows
version: 10 10.0.18362 SP0 Multiprocessor FreeSource: saltstack/salt