Closed alswl closed 2 years ago
Can you check & share the values of the following environment variables, please:
Since the CI
check wasn't in v0.9.0 yet, I'm assuming the CI
environment variable has some value on your system?
@muesli The reproduce process between version did not modified any ENV or others settings.
My environments variables:
➜ ~ echo $TERM
screen-256color
➜ ~ echo $COLORTERM
truecolor
➜ ~ echo $TERM_PROGRAM
tmux
➜ ~ echo $CI
true
➜ ~ echo $TERM_PROGRAM
tmux
➜ ~ echo $NO_COLOR
➜ ~ echo $CI true
Unsetting this variable will enable the colored output again. It's something I had to introduce because some CIs (CircleCI) in particular just time out responding to OSC messages.
@muesli Thanks for you reply, it works for me.
It's so weird that I didn't explicitly specify that my environment has this CI
variable.
I found the settings finally.
Another cli command using this variable for indicate upgrade or not.
# disable waque auto upgrade
export CI=true
# disable waque auto upgrade export CI=true
That seems rather odd and a bit of a misuse of this particular env var.
You can alternatively enforce colors with the CLICOLOR_FORCE
env var. In code, you could pass your own environment to termenv or set a fixed profile.
@muesli Thanks for your patient guide.
After upgrade to 0.12.0, I found my cli is running with no color. After seeking problems, I found termenv' version is the root casue.
Show the code:
After upgrade:
And the latest 0.12.0 still not works for me.
My system versions: