-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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: Entire line is reprinted for every prompt character after a space #1647
Comments
Both of these are horrific and I hope we can get to them soon. Out of curiosity, does it repro with powershell or wsl? Might be helpful to know if this is related to how |
pwsh output:
wsl output (correct):
|
That at least makes me feel better. Looks like it is COOKED_READ related, and if I had to guess, PSReadline redraws the prompt on every character, so that might be out of our control. |
@zadjii-msft hmm... On PSReadline, I'm beginning to think terminals that want to support screen readers well will need to have some buffer diffing as well to avoid reading out prompts when they're reprinted, fish has some fancy auto-complete for example that would probably be awful for screen readers for example and I think zsh might do similar for character attributes. But this is still a valid report right, cmd.exe shouldn't be reprinting? |
Oh yea it's definitely still valid. Now I know where to look :) IIRC the UIA stuff we have in conhost today chokes on things like PSReadline too - taking a larger diff than change-by-change is a good idea, but I'm not super familiar with that code. I doubt it'd be possible with the architecture we currently have. @adiviness can correct me if I'm wrong, and @carlos-zamora may be interested in this side-bar. |
@Tyriar Are you still seeing this? When I try booting up python in conpty and following the repro of
(where Similarly, I'm only ever seeing There were some optimizations that went into conpty around April, but it looks to me like those actually made it to master around 18883.1000.rsmaster.190417-1356. The task/bug/pr I'm looking at are MSFT:20297559, MSFT:21091917, and MSFT:3121537. |
Related: #1646
Environment
Steps to reproduce
Repros in both cmd and python
Expected behavior
Only a and space should be sent from conpty until the end of the line is reached
Actual behavior
The text was updated successfully, but these errors were encountered: