vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

ANSI escape code are garbled

Open CryingObsidian-CO opened this issue 2 years ago • 6 comments

Brief Issue Summary

Excuse me, when I finish running the test and look at the test at the test results, I get a broken ANSI sequence, but when I use cout to output in the terminal, I can get to a correct ANSI sequence, so I'm pretty sure that the terminal used by VSCode supports it, can this be solved?

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

  1. My cpp source code: image

  2. The output at test results: image

  3. The output at test terminal:

    • This is the output at cmd image
    • This is the output at powershell image

CryingObsidian-CO avatar Jun 09 '23 13:06 CryingObsidian-CO

Thanks for your feedback. This is happening because output from the CMake Tools extension is going to a VS Code output panel, which only displays text and does not have terminal emulation support like the integrated terminal. Output panels are easier to write to than the terminal using the VS Code API, and it's unlikely that we'll have the capacity to change the way this works in the short term.

I'll leave this issue open so that others can discuss and vote on it. We typically prioritize feature work based on the number of 👍 reacts to the original post.

benmcmorran avatar Jun 13 '23 16:06 benmcmorran

OK, thanks for your answer

CryingObsidian-CO avatar Jun 14 '23 14:06 CryingObsidian-CO

I have the same problem when i auto save my CMake config file, and It's very uncomfortable.

jscptman avatar Nov 01 '23 16:11 jscptman

I also have this problem. When I build my project, warnings and such get printed like so, which is very hard to read afbeelding

nielsmittertreiner avatar Nov 23 '23 20:11 nielsmittertreiner

A simple vote, and follow up

stlfatboy avatar Nov 06 '24 03:11 stlfatboy

any fixes?

GrinlexGH avatar Jun 14 '25 12:06 GrinlexGH

@GrinlexGH There’s no quick fix for now, but if this matters to you, definitely give a 👍 to the main post — that helps the maintainers see how many people are affected and might speed things up.

@gcampbell-msft FYI.

Amy-Li03 avatar Jun 19 '25 01:06 Amy-Li03