-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConPTY not emitting OSC sequences longer than 256 characters (Windows 10) #15551
Comments
Interesting! It looks like this works with the version of ConPTY in Terminal 1.18! (The debug panel on the right shows conpty's raw output before Terminal parses it for display on the left.) The version of ConPTY shipped in Windows 10 is quite out of date compared to what ships in Terminal, and it's difficult for applications to get access to. We're tracking making that easier in #15065. Unfortunately, you may need to wait until that one lands. Sorry! /dup #15065 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
@DHowett Perfect, thanks for the quick response! Probably, it's not needed as you've got my case right, but I feel like I should have clarified it a bit. My application similarly to the forked GUIConsole.ConPTY loads ConPTY from Windows system libraries. There is no such issue when the PowerShell commands (like Thanks for #15065. While it's unavailable yet, do you know if there are any workarounds for the ConPTY version shipped in Windows 10? Oh, more importantly, how can I detect if a loaded ConPTY version contains the fix for this issue? |
Unfortunately, I don't have a very good answer for those two questions. There isn't a workaround (I believe the bug is actually that on occasion, the console host receives the OSC in more than one It's unfortunately not detectable. Any version you get from a prospective or potential nuget package will have the fix, and any version on Windows 10.0.20348 and above will have the fix. That's Server 2022... 🤔 |
Great, thanks for the details. |
Windows Terminal version
1.17.11461.0
Windows build number
10.0.19045.0
Other Software
No response
Steps to reproduce
You need Windows 10 to reproduce this. Not reproduced for me on Windows 11.
Expected Behavior
Visible printed text should be
12345
.The output should contain 5 OSC escape sequences:
a
x5b
x250c
x251d
x252e
x253Actual Behavior
Instead, the visible printed text is
1dee2345
.The output contains only the first two escape sequnces:
a
x5b
x250Seems ConPTY cannot emit escape sequences longer than 256 characters. Are there any workarounds?
The text was updated successfully, but these errors were encountered: