Skip to content

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

Closed

Description

@AAClause

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

Activity

  1. added
    app/windows-terminalNew terminal app, potentially supersedes app/windows-console (repo: microsoft/terminal)
    on Oct 9, 2020
  2. codeofdusk commented on Oct 12, 2020

    @codeofdusk
    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.

  3. added this to the 2020.4 milestone on Oct 16, 2020
  4. added a commit that references this issue on Oct 16, 2020
    6ceb8ac
  5. AAClause commented on Nov 8, 2020

    @AAClause
    ContributorAuthor

    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.

  6. codeofdusk commented on Nov 8, 2020

    @codeofdusk
    Contributor

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

  7. codeofdusk commented on Nov 8, 2020

    @codeofdusk
    Contributor

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

  8. AAClause commented on Nov 8, 2020

    @AAClause
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/windows-terminalNew terminal app, potentially supersedes app/windows-console (repo: microsoft/terminal)

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions