ANSI colors don't work in VSCode integrated terminal

Viewed 294

I am using Visual Studio Code for my python project and I am also using flakeheaven (fork of the unmaintained flakehell package) to manage flake8 and other linters/plugins. When running flakeheaven lint, it tries to print the output nicely with colors. Here's how it looks on my terminal (Windows terminal using Powershell Core):

I like this feature. However, When I run the lint command in the integrated terminal in VSCode, it doesn't display the colors, and instead displays weird ANSI sequences:

It looks like VSCode can't display the ANSI colors correctly in the terminal. I'd like to know if there is a way to fix this to get the same colorful output as in the external terminal.

Is there a way to make VSCode terminal display colored ANSI output correctly?

0 Answers
Related