Skip to content
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

ANSI Codes inserted, but not interpreted when running in VS 2019 debugger #365

Open
talbertine opened this issue Nov 20, 2022 · 1 comment

Comments

@talbertine
Copy link

I can see that the escape sequences are being added as expected when I use things like Fore.RED and whatnot, but instead of changing the colors, they just come out as the sequences.

It works every other way I've tried. Double clicking the script and running it through the python console, using cmd or powershell, and even copying and pasting the code into VS's interactive python console window all work fine. Just not when I run it through the debugger.

Here's some quick code that I used to demonstrate:

from colorama import just_fix_windows_console
just_fix_windows_console()
from colorama import Fore, Back, Style

print(Fore.RED + "Test text" + Style.RESET_ALL)
print("For compariston")

Here's a link to imgur showing the difference.

Is there some setting I need to change to get it to work properly? Or is this just some VS quirk and I'm out of luck?

@iuriguilherme
Copy link

#203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants