Command Window loses focus if opening history
2 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Sufiyan
on 24 May 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!
0 Comments
See Also
Categories
Find more on Debugging and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!