Command Window loses focus if opening history

1 vue (au cours des 30 derniers jours)
Matti Kaupenjohann
Matti Kaupenjohann le 4 Oct 2022
I access one matlab instance on a server based workstation via ssh -Y which worked fine for a while. Recently I figured out a new behaviour: If I use the uparrow-key the history opens but the Command Window loses focus and I have to click inside the history list do gain control.
The workstation is a ubuntu22.04 machine and I use VcXsrv as my XServer. I recognized the same issue with MobaXterm as well. I think this is user specific since another coworker does not have the problem on the same machine with MobaXterm.

Réponses (1)

Sufiyan
Sufiyan le 24 Mai 2023
I understand you are experiencing an issue with the terminal window configuration. To fix this issue, you can try the following:
1.Check the value of the `TERM` environment variable:
Type `echo $TERM` into the command prompt to display the current value of the `TERM` environment variable. The value should be set to `xterm` or `xterm-256color`.
2. Update the terminal configuration:
In your terminal configuration settings, make sure that your terminal is set to "xterm" or "xterm-256color." If it is set to a different value, change it to `xterm` or `xterm-256color` and save the changes.
3. Restart your SSH session:
After updating the terminal configuration, restart your SSH session and try the up arrow key again to see if the issue has been resolved.
4. Try changing the SSH session options:
If the steps above do not work, you can try changing some of the SSH session options to see if this resolves the issue. For example, you could try setting the `ForwardX11Trusted` option to `yes` or changing the `X11Forwarding` option to `true`.
These steps should help you resolve the issue with the SSH session losing focus when using the up arrow key.
Hope this helps!

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by