colorama icon indicating copy to clipboard operation
colorama copied to clipboard

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

Open talbertine opened this issue 2 years ago • 1 comments

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?

talbertine avatar Nov 20 '22 22:11 talbertine

#203

iuriguilherme avatar Nov 27 '22 23:11 iuriguilherme