microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.46k stars 449 forks source link

ANSI escape code are garbled #3203

Open CryingObsidian-CO opened 1 year ago

CryingObsidian-CO commented 1 year ago

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
benmcmorran commented 1 year ago

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.

CryingObsidian-CO commented 1 year ago

OK, thanks for your answer

jscptman commented 11 months ago

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

nielsmittertreiner commented 10 months ago

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