Pengwin
Pengwin copied to clipboard
Unable use Ctrl+L hotkey clear screen in VSCode Terminal using Remote - WSL
Describe the bug
I opened a project from WSL using Pengwin Linux and VSCode. After VSCode opened, I can't hit Ctrl+L clear screen in the Terminal. If I use Ubuntu 20.04 in WSL, there is no problem at all.
To Reproduce Steps to reproduce the behavior:
-
Open WSL 2 (Pengwin)
-
mkdir build -
code . -
Open Terminal
-
ls -
Hit
Ctrl+Lclear screen, you will see this:
Expected behavior
It should clear screen in the Terminal window.
Screenshots

Additional context
N/A
Basic Troubleshooting Checklist
[x] I have searched Google for the error message.
[x] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[x] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[x] I have searched the Pengwin issues page: https://github.com/WhitewaterFoundry/Pengwin/issues.
[x] I have run Windows 10 updates and restarted.
[x] I have restarted WSL service: wsl.exe --terminate WLinux wsl.exe --shutdown.
What other troubleshooting have you attempted?
I don't know what else I can try.
Pengwin Version
Run grep "PENGWIN_VERSION" /etc/os-release in Pengwin.
PENGWIN_VERSION="21.7.1"
WSL general info
Run wslsys in Pengwin.
WSL Version: 2
Locale: zh_TW
Release Install Date: Wed May 20 15:08:43 CST 2020
Branch: vb_release
Build: 19043
Full Build: 19041.1.amd64fre.vb_release.191206-1406
Display Scaling: 1.5
Windows Theme: dark
Windows Uptime: 9d 12h 12m
WSL Uptime: 5d 12h 22m
WSL Release: Pengwin
WSL Kernel: Linux 5.10.16.3-microsoft-standard-WSL2
Packages Count: 528
Hello @doggy8088
Thanks for reporting. We'll take a look.
Regards, Carlos
Hello @doggy8088 ,
I tested with a fresh install of Pengwin and it doesn't happen. Also, I noticed the message that you showed in the screenshot and searched for it. Check this answer: https://stackoverflow.com/questions/57456894/visual-studio-code-waiting-for-second-key-of-chord-ctrl-a looks like you have Ctrl+L assigned to another action.
Regards, Carlos
I found this in settings:

I also recommend putting this:

So, you'll have a login shell and all the pengwin default behavior.
The Shell Args is deprecated.

I changed to this, but the Ctrl+L still unable use, but I can actually hit Ctrl+D to exit.
{
"terminal.integrated.allowChords": true,
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"args": ["-l"],
"icon": "terminal-bash"
}
}
}
I recorded a short clip. Please take a look.
https://youtu.be/tyRhDgoYWzg
After setting "terminal.integrated.allowChords" from true to false, the problem solved.
{
"terminal.integrated.allowChords": false
}
But I still don't know why Ubuntu 20.04 LTS don't have that issue. Only Pengwin Linux have this issue.
Here is the video clip about Ubuntu 20.04 can hit Ctrl+L clear screen.
https://youtu.be/7WEjzPgC8Ho
Hello @doggy8088 ,
I tested with a fresh install of Pengwin and it doesn't happen. Also, I noticed the message that you showed in the screenshot and searched for it. Check this answer: https://stackoverflow.com/questions/57456894/visual-studio-code-waiting-for-second-key-of-chord-ctrl-a looks like you have Ctrl+L assigned to another action.
Regards, Carlos
None of these hotkeys registered for Terminal.

I just had a keybinding for ctrl+l that was attached to the terminalFocus (I can't remember what it was for now) I removed and it fixed it for me.