Weird x5c path output when opening a integrated terminal in VSCode #21832

Closed
opened 2026-01-31 07:56:00 +00:00 by claunia · 4 comments
Owner

Originally created by @shyney7 on GitHub (Jun 6, 2024).

Windows Terminal version

1.21.1382.0 (preview) and 1.20.11381.0

Windows build number

10.0.19045.0

Other Software

VSCode 1.90.0

Steps to reproduce

Open a integrated Terminal inside VSCode

Expected Behavior

No weird path output with x5c x1b outputs

Actual Behavior

When I open a integrated Terminal in VSCode I get a weird path output that looks like this:
grafik
This issue was also mentioned in the vscode repo and the devs say its a windows terminal problem.
https://github.com/microsoft/vscode/issues/211721

Originally created by @shyney7 on GitHub (Jun 6, 2024). ### Windows Terminal version 1.21.1382.0 (preview) and 1.20.11381.0 ### Windows build number 10.0.19045.0 ### Other Software VSCode 1.90.0 ### Steps to reproduce Open a integrated Terminal inside VSCode ### Expected Behavior No weird path output with x5c x1b outputs ### Actual Behavior When I open a integrated Terminal in VSCode I get a weird path output that looks like this: ![grafik](https://github.com/microsoft/terminal/assets/17785769/0868a8d1-a712-4291-9f23-9a006d1db576) This issue was also mentioned in the vscode repo and the devs say its a windows terminal problem. https://github.com/microsoft/vscode/issues/211721
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:56:01 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jun 6, 2024):

Okay, but does this actually repro in the Windows Terminal? Or only in VsCode/?

Does this repro in a conhost.exe window?


0x5c is just a \, so it kinda looks like there some extra level of escaping going on somewhere in the stack. Like the OSC9;9 sequence got translated one too many times.

I'd also reckon that this may be related to some combination of oh-my-posh and VsCode's own shell integration.

@zadjii-msft commented on GitHub (Jun 6, 2024): Okay, but does this actually repro in the Windows Terminal? Or only in VsCode/? Does this repro in a `conhost.exe` window? --- `0x5c` is just a `\`, so it kinda looks like there some extra level of escaping going on _somewhere_ in the stack. Like the OSC9;9 sequence got translated one too many times. I'd also reckon that this may be related to some combination of oh-my-posh and VsCode's own shell integration.
Author
Owner

@zadjii-msft commented on GitHub (Jun 6, 2024):

Upon investigation, I'm betting this is https://github.com/microsoft/vscode/issues/214386

@zadjii-msft commented on GitHub (Jun 6, 2024): Upon investigation, I'm betting this is https://github.com/microsoft/vscode/issues/214386
Author
Owner

@shyney7 commented on GitHub (Jun 6, 2024):

Upon investigation, I'm betting this is microsoft/vscode#214386

Ok thank you for the investigation and clarafication. I will close this issue since it seems not to be a Windows Terminal issue per se

@shyney7 commented on GitHub (Jun 6, 2024): > Upon investigation, I'm betting this is [microsoft/vscode#214386](https://github.com/microsoft/vscode/issues/214386) Ok thank you for the investigation and clarafication. I will close this issue since it seems not to be a Windows Terminal issue per se
Author
Owner

@shyney7 commented on GitHub (Jun 11, 2024):

Relevant vscode issue (June Milestone): https://github.com/microsoft/vscode/issues/211922

@shyney7 commented on GitHub (Jun 11, 2024): Relevant vscode issue (June Milestone): https://github.com/microsoft/vscode/issues/211922
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21832