UI Automation in Windows Console: Disable visible range bounding on 21H1 and later#11495
UI Automation in Windows Console: Disable visible range bounding on 21H1 and later#11495codeofdusk wants to merge 1 commit into
Conversation
|
Please describe the underlying issue with NVDA along with steps to reproduce. Also, it would help if you could provide info on how Narrator behaves in this case. |
|
From microsoft/terminal#5481: EnvironmentSteps to reproduce
Expected behaviourLike in pre-21H1 conhost and Windows Terminal 0.11, NVDA reads current output immediately. Actual behaviourAt this point, NVDA's auto-read lags far behind the actual output in the buffer. Quitting Python with ContextWhen a text change event is received, NVDA takes a diff of the old and new text and reads only the changed portion of the text. Maybe there's a bug in our diffing algorithm (implemented here, in |
|
Closing in favour of a solution to #11172. |
Link to issue number:
Blocked by microsoft/terminal#6986.
Summary of the issue:
It was mentioned in microsoft/terminal#6453 (comment) that some new console text can actually appear below the visible range, making it completely inaccessible to NVDA.
Description of how this pull request fixes the issue:
No longer bound the console's text info to the visible ranges on 21H1 and later. This will require upstream changes by Microsoft to maintain usability in the console after this PR.
Testing performed:
winConsoleUIA._getTextLinesto limit the number of lines in the diff and tested the case in UIA in conhost: issues with visible ranges microsoft/terminal#5481. Observed that the bug is no longer reproducible.Known issues with pull request:
Change log entry:
Not user visible.