Command Window loses focus if opening history
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Sufiyan
2023-5-24
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!