microsoft / microsoft/vscode-cmake-tools

ANSI escape code are garbled

Open
#3,203 7 comments 58 reactions 0 assignees View on GitHub
enhancement Feature: other more votes needed
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### 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](https://github.com/microsoft/vscode-cmake-tools/assets/54172963/994139c0-35fd-4006-b465-36d963dc00c6)

2. The output at test results:
![image](https://github.com/microsoft/vscode-cmake-tools/assets/54172963/368adaa7-c0c4-4ddc-b6cc-4b0f51e0c346)

3. The output at test terminal:
- This is the output at cmd
![image](https://github.com/microsoft/vscode-cmake-tools/assets/54172963/03e2f374-ebb2-4042-bdb4-9dd671f21e01)
- This is the output at powershell
![image](https://github.com/microsoft/vscode-cmake-tools/assets/54172963/2a9e69d9-aa6f-4f90-9ad4-d1feddd01aca)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by running the reported C++ test through CMake Tools and compare its test-results output with the cmd and PowerShell terminal output shown in the issue. Trace how ANSI sequences are displayed in the CMake Tools test results, and consider the issue done when the test-results view renders the same ANSI output correctly without breaking terminal behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, typescript, vscode
Domain
developer-experience, testing-qa, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.