Skip to content
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

UIA in Console: unable to access terminal after scrolling of long text #11740

Closed
AAClause opened this issue Oct 9, 2020 · 5 comments · Fixed by #11760
Closed

UIA in Console: unable to access terminal after scrolling of long text #11740

AAClause opened this issue Oct 9, 2020 · 5 comments · Fixed by #11760
Labels
app/windows-terminal New terminal app, potentially supersedes app/windows-console (repo: microsoft/terminal)
Milestone

Comments

@AAClause
Copy link
Contributor

AAClause commented Oct 9, 2020

Steps to reproduce:

  1. Ensure that "Use UI Automation to access the Windows Console when available" is enabled.
  2. Open cmd or powershell.
  3. Execute the follow line to generate some random text (you can use many other solutions for that like read a huge file using 'cat'):
    wsl head -c 5000000 /dev/urandom|tr -dc "\u20-\u80"|fold -w80
  4. Wait until the previous command is finished (i.e. until the prompt is back).
  5. Move in another window/go to desktop.
  6. Return to cmd.

Actual behavior:

We can't access to the Terminal content. No problem if UIA in Window Consoles is disabled.

Expected behavior:

We should explore the Terminal.

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

alpha-21145,ac31a795

Windows version:

Windows 10 Insider (64-bit) build 20231.1000

Name and version of other software in use when reproducing the issue:

cmd, powershell

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

No

If addons are disabled, is your problem still occuring?

Yes

Did you try to run the COM registry fixing tool in NVDA menu / tools?

No

@feerrenrut feerrenrut added the app/windows-terminal New terminal app, potentially supersedes app/windows-console (repo: microsoft/terminal) label Oct 9, 2020
@codeofdusk
Copy link
Contributor

This is microsoft/terminal#5481 (fixed in #11639). In future, when creating UIA console issues, please mention me (@codeofdusk) and @carlos-zamora. Thanks!

Technical: pre-21H1, UIA console ended each new line of text with a newline character (\r\n). Therefore, _getTextLines simply did a splitlines on all text. In 21H1, lines can wrap so this optimization is no longer sufficient.

@AAClause
Copy link
Contributor Author

AAClause commented Nov 8, 2020

Issue not fully solved for me (NVDA alpha-21312,cb82f504, Windows 10 Insider build 20251.1). It happens less often since #11639 was merged but still occurs. Tested with add-ons disabled.

@codeofdusk
Copy link
Contributor

#11639 isn't in yet, but #11760 should've fixed this.

@codeofdusk
Copy link
Contributor

Oh, never mind, I see what the issue is! This is a duplicate of #11002.

@AAClause
Copy link
Contributor Author

AAClause commented Nov 8, 2020

My bad. Thanks for the precision, I missed your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app/windows-terminal New terminal app, potentially supersedes app/windows-console (repo: microsoft/terminal)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants