WSL Ubuntu clear on ssh system causing scrolling Issues #539

Open
opened 2026-01-30 21:54:43 +00:00 by claunia · 0 comments
Owner

Originally created by @Rob-Wal on GitHub (Jan 28, 2019).

Your Windows build number: Microsoft Windows [Version 10.0.17763.253]

What you're doing and what's happening: Under WSL/Ubuntu(16.x or 18.x) ssh to VMware PhotonOS3. Running clear command clears the console but if you press any key after that the prompt disappears. Looking at it closely what is really happening is the console scrolls down. It's not scrolling back to the top properly.

What's wrong / what should be happening instead: The prompt should remain after clearing screen and pressing any key.

I have narrowed it down with a work around of setting the WSL Ubuntu terminal type to screen-256color. This sets PhotonOS3 to the same terminal type and this does not happen.

Also changed Bash/Powershell console Screen Buffer Height to less than the window size this does not happen (because there is not scrollbar?)
This does not happen with putty ssh. I believe I have narrowed this down to an xterm-256color terminal type issue. Also setting putty to xterm-256color this issue does not happen.

Its a combination of WSL Ubuntu and the xterm-256color terminal type. I do not have many other distro to test with at the moment.

[root@SUPERDUPER-LT ~]# echo $TERM
xterm-256color
[root@SUPERDUPER-LT ~]# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
[root@SUPERDUPER-LT ~]#

Originally created by @Rob-Wal on GitHub (Jan 28, 2019). **Your Windows build number:** `Microsoft Windows [Version 10.0.17763.253]` **What you're doing and what's happening:** Under `WSL/Ubuntu(16.x or 18.x) ssh to VMware PhotonOS3.` Running clear command clears the console but if you press any key after that the prompt disappears. Looking at it closely what is really happening is the console scrolls down. It's not scrolling back to the top properly. **What's wrong / what should be happening instead:** The prompt should remain after clearing screen and pressing any key. I have narrowed it down with a work around of setting the WSL Ubuntu terminal type to screen-256color. This sets PhotonOS3 to the same terminal type and this does not happen. Also changed Bash/Powershell console Screen Buffer Height to less than the window size this does not happen (because there is not scrollbar?) This does not happen with putty ssh. _I believe I have narrowed this down to an xterm-256color terminal type issue._ Also setting putty to xterm-256color this issue does not happen. Its a combination of WSL Ubuntu and the xterm-256color terminal type. I do not have many other distro to test with at the moment. [root@SUPERDUPER-LT ~]# echo $TERM xterm-256color [root@SUPERDUPER-LT ~]# cat /etc/os-release NAME="Ubuntu" VERSION="18.04.1 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.1 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic [root@SUPERDUPER-LT ~]#
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#539