microsoft / microsoft/terminal
UIA in conhost: incorrect word boundaries when text is selected
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Windows Terminal version
Version of OpenConsole included with the wt 1.12 release.
### Windows build number
10.0.22000.348
### Other Software
NVDA master (2022.1) with UIA.
### Steps to reproduce
Paste the following text into a conhost. On my system, this line wraps at the word "upgrade":
`tree.IncompatibleFormatError: This file is too new for the currently running version of Treemendous (0.0.0). Please upgrade to Treemendous 42.0.0 or later.`
Then:
* Select a word, such as by moving to the top of the console and searching for the word "please" with CTRL+f.
* navigate forward in the window by word.
### Expected Behavior
word boundaries are correctly calculated: after the wrapping, NVDA says "upgrade", "to", "Treemendous", etc.
### Actual Behavior
NVDA reads from the start of the line up to some arbitrary point, can't tell what's going on???
Contributor guide
Research direction
Start by reproducing the issue in conhost with the supplied text, Windows build, and NVDA UIA setup, then trace the text-selection and word-navigation handling. Done means NVDA reports the wrapped words and boundaries correctly after selecting or searching for a word and navigating forward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- accessibility, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100