You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nvda logs a lot of '\r\n\r\n' if UIA support for Windows console is enabled #14689
This is a known bug in API level 0 consoles (see microsoft/terminal#6986). In consoles with less than API level 2, no support is provided as indicated in the user guide.
Mitigation strategies:
Ideally, upgrade to Windows 11 Sun Valley 2.
If possible, use Windows Terminal (wt.exe), which is continuously updated.
If all else fails, upgrade conhost.exe to the version included with Windows Terminal. I've provided guidance in other issues, etc. on how to do that.
But due to another issue, not forcing UIA support for Windows Console under Chinese operating systems will cause every Chinese character displayed on the screen to be reported twice by NVDA.
I've updated my console test package to the latest released build of OpenConsole. Hopefully this can provide a stopgap solution until you upgrade to SV2 or switch to wt.
Activity
CyrilleB79 commentedon Mar 2, 2023
According to your log, the spoken string is 18095 character long. And there are 17994 characters after the last '>', i.e. 8997 '\r\n'.
@codeofdusk: any idea why so many new lines are captured in the command window when it becomes the foreground?
codeofdusk commentedon Mar 2, 2023
This is a known bug in API level 0 consoles (see microsoft/terminal#6986). In consoles with less than API level 2, no support is provided as indicated in the user guide.
Mitigation strategies:
wt.exe), which is continuously updated.conhost.exeto the version included with Windows Terminal. I've provided guidance in other issues, etc. on how to do that.@seanbudd I recommend closing as duplicate of microsoft/terminal#6986.
CC @carlos-zamora, @DHowett.
cary-rowen commentedon Mar 2, 2023
@codeofdusk
If I can't upgrade to windows11 now, can you provide other solutions?
This problem bothers me because of: ABuffEr/numberProcessing#4
But due to another issue, not forcing UIA support for Windows Console under Chinese operating systems will cause every Chinese character displayed on the screen to be reported twice by NVDA.
codeofdusk commentedon Mar 2, 2023
If you can't upgrade, either use Windows Terminal (
wt.exe) or replace your conhost.ABuffEr commentedon Mar 2, 2023
Hi,
just for documentation, the freeze seems to born in speechDictHandler.processText function. Adding something like:
before the dictionaries loop, no freeze happens. But I doubt it would be considered an acceptable solution for a PR...
cary-rowen commentedon Mar 3, 2023
@codeofdusk
You wrote:
Can you provide a link on how to do this?
codeofdusk commentedon Mar 3, 2023
I've updated my console test package to the latest released build of OpenConsole. Hopefully this can provide a stopgap solution until you upgrade to SV2 or switch to
wt.seanbudd commentedon Mar 7, 2023
@ABuffEr a fix similar to what you suggested is appropriate
ABuffEr commentedon Mar 7, 2023
Ok, I'll provide a PR in next hours.
Avoid freeze in Windows API Level 0 and 1 console when UIA support is…
Avoid freeze removing blank lines from IMPROVED and END_INCLUSIVE UIA…