UI Automation in Windows Console: limit blank lines in review and initial word movement support (#9647)
* Restrict the number of blank lines shown in console UIA's object review.
Note: there are issues when reaching the bottom of the review (cursor gets stuck).
* UIA console: only apply our custom move logic when not moving the caret.
This should mostly restore caret movement support.
* Add basic word movement support.
* ConsoleUIATextInfo: support expantion by word.
* consoleUIATextInfo._countCharsToEnd(reverse=True) is now consoleUIATextInfo._getCurrentOffset. The reverse option has been removed.
* Cleanup.
* Improve cursor placement after word movement.
* Review actions (without changes to expand)
* Re-implement expand.
Note: this new approach includes characters after a line break in the current word.
* Review actions.
* Review actions.
* Review actions.
* Fix forward movement across lines.
* UIAWinConsole support: Improve logic of moving previous word to no longer jump over the last word on the previous line.
* Style.