-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
using orca I can't edit commands already executed in the VSCode terminal #94708
Comments
(Experimental duplicate detection)
|
I'm not sure we can solve this, at least in the ideal way. The actual "textbox" is owned by whatever process is running (eg. powershell), it could start at cell 2 or cell 10, we don't know. So we can't populate a HTML textbox to expose that information to screen readers. |
In my environment orca reads when I press up/down arrow. Orca does not read when I press left/right after I press up/down. |
@jvesouza when you press up, the terminal in VS Code sends the "up" code over to the shell and it responds by moving the cursor to the beginning on the prompt and then printing characters. It's read out the same as how output is read out. Now when you move the cursor left, VS Code sends the "left" code over to the shell and the shell responds by moving the cursor 1 cell to the left. The way this works in the editor (I think) is that there is a backing textarea which contains all the text in the line so it works just like working in a regular textarea, however in the terminal it's impossible to know reliably what is in the prompt as we don't know what the program is or does, we can only guess. |
@Tyriar Thank you very much for the excellent explanation. I understood why an ideal solution is not possible. |
Funny thing: Very rarely -- and unpredictably -- Orca does speak the character being arrowed to. It does this in response to caret-moved events (which it also gets from VTE-based apps when the user moves left/right on a line with text). Any ideas why most of the time, these needed events are completely missing? |
@joanmarie your shell might be re-printing the character for example by re-setting the character style, in which case it would be announced. |
Let's take Orca out of the picture for a moment. If my shell is re-printing the character for example by re-setting the character style, who is emitting the accessible object:text-caret-moved event in response to that change? The shell, Chromium, or VSCode? |
@joanmarie there is a backing textarea in the terminal as well that's used for input, Chromium will emit these events I'm guessing. |
Could anyone see if this works on windows? or that is also problematic there? The comments would imply that it is, but... better to make sure. |
@webczat it probably doesn't on Windows either, it depends what winpty/conpty emits (it gets more complicated over there). |
This is another case of #131295 |
Issue Type: Bug
echo This is a test.
Orca reads the command typed in the step 3 as expected.
Orca should read each character as left and right are pressed but instead it is muted.
@isidorn @joanmarie
I'm not sure if the problem is with orca or VSCode.
VS Code version: Code - Insiders 1.44.0-insider (2aae1f2, 2020-04-07T21:48:49.536Z)
OS version: Linux x64 5.6.2-arch1-2
The text was updated successfully, but these errors were encountered: