Command Window loses focus if opening history

조회 수: 1 (최근 30일)
Matti Kaupenjohann
Matti Kaupenjohann . 2022년 10월 4일
답변: Sufiyan . 2023년 5월 24일
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.

답변 (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!


Help CenterFile Exchange에서 Programming Utilities에 대해 자세히 알아보기




Community Treasure Hunt

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

Start Hunting!

Translated by