You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[1.19] Shell integration marks are totally in the wrong place #16034
Leonard Hecker (@lhecker) how load bearing is that? I know that comment sounds super scary above it, but manually setting needsConPTYWorkaround to false definitely fixes the scrolling and marks issue.
I'll fix #16044 and this issue in a single PR.
For #16044 I'll make it so that appending text only reprints the minimum amount of text that's necessary and for this issue I'll revert the above code entirely.
After all that, I'll reopen #15899 and leave it unfixed for the foreseeable future, because as much of a significant bug it is, I feel like fixing it is too difficult for the impact it has. To properly fix it, it always either required us to sacrifice on our i18n or to implement a pager, both of which are a pain to do. We have other issues that are much easier to fix and are hit much more often, right?
And if we don't reprint the entire prompt when appending text, I don't think it'll be hit very often. After all, cmd.exe always reprinted the entire prompt when inserting in the middle...
Activity
zadjii-msft commentedon Sep 26, 2023
Looks like this is also busted in v1.19.2652.0
zadjii-msft commentedon Sep 28, 2023
oh no, scrolling is really badly messed up
zadjii-msft commentedon Sep 28, 2023
Bisecting. Starting by looking for a good commit around
❔ ✅ ❌
zadjii-msft commentedon Sep 28, 2023
4ddfc3e is the first bad commit
commit 4ddfc3e
COOKED_READ_DATA: Fix scrolling under ConPTY (#15930)
zadjii-msft commentedon Sep 28, 2023
Okay this is 100% due to:
terminal/src/host/_stream.cpp
Lines 79 to 93 in cc2ba53
Leonard Hecker (@lhecker) how load bearing is that? I know that comment sounds super scary above it, but manually setting
needsConPTYWorkaroundtofalsedefinitely fixes the scrolling and marks issue.lhecker commentedon Sep 28, 2023
I'll fix #16044 and this issue in a single PR.
For #16044 I'll make it so that appending text only reprints the minimum amount of text that's necessary and for this issue I'll revert the above code entirely.
After all that, I'll reopen #15899 and leave it unfixed for the foreseeable future, because as much of a significant bug it is, I feel like fixing it is too difficult for the impact it has. To properly fix it, it always either required us to sacrifice on our i18n or to implement a pager, both of which are a pain to do. We have other issues that are much easier to fix and are hit much more often, right?
And if we don't reprint the entire prompt when appending text, I don't think it'll be hit very often. After all, cmd.exe always reprinted the entire prompt when inserting in the middle...
zadjii-msft commentedon Sep 28, 2023
Totally cool with that. Tossing this one over to you then☺️
Fix UIA and marks regressions due to cooked read (#16105)
Fix UIA and marks regressions due to cooked read (#16105)
Fix UIA and marks regressions due to cooked read (microsoft#16105)