-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No colors in Windows Terminal or cmd #1972
Comments
@sztomi Did you also noticed that in Cmder at least as soon as I hit
I know that this is supposed to be depreciated with PYENV_VIRTUALENV_DISABLE_PROMPT=1, but I will likely keep it as is. |
I tried with |
Looks like using rich would solve this issue. |
I can't display the ANSI color effect in Windows terminal either, I have to add the command line parameter --ansi every time I run it, can this option switch be added to the config without adding the parameter every time? |
@myliyifei you could use an alias (sth. like |
@sztomi hi ,you can check the env, the poety need to get your "TERM"
For TERM = cygwin , you need to add --ansi to focus color it. |
@gaoming714 TERM is not set in native windows terminals, that's a unix thing. |
I found the problem here. Poetry uses |
If it works with
|
thanks, the workaround works!
TBBle <[email protected]> 于2021年1月4日周一 下午6:54写道:
… If it works with --ansi but not without, that's #3354
<#3354>, and is a bug in
clikit.
As a workaround, you can set the ANSICON env-var to something non-empty
to force ANSI support.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1972 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABS2XOJLVD5ILUFCGMEURELSYGM4TANCNFSM4KPVFAMQ>
.
|
If you have a dir that comes first in your PATH (before poetry), you can add a
|
Could anyone verify if this is still an issue? |
Although cleo no longer uses clikit, I recall looking into it last year, and the relevant code was just copied from clikit into cleo, and the relevant bug is now python-poetry/cleo#104. |
Following your hint, I add an environment variable |
Related Stack Overflow question: Is there a way to activate colored output for Poetry in Windows Terminal? |
input this in the terminal$PROFILE
# will output path\to\profile.ps1 Open (create) the
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
This is #548 which was said to be fixed in "the latest beta" at the time, but now appears to be broken with no beta being more recent than the latest released version (1.0.3).
Long story short, there are no colors displayed on windows with any of the command shells I tried except in ConEmu. The default cmd.exe, powershell.exe and the new Windows Terminal don't display colors.
Some screenshots:
Powershell in Windows Terminal:
Cmd in Windows Terminal:
cmd.exe:
Cmd in Cmder (based on ConEmu) - This works!:
Powershell in Cmder (based on ConEmu):
This last one can probably be considered working as well, the green text is likely due to the cmder config.
The text was updated successfully, but these errors were encountered: