Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange behaviours: copy and paste some URL and numeric keypad that does not work #785

Closed
aborruso opened this issue Feb 3, 2024 · 15 comments
Labels
Bug This is a problem.

Comments

@aborruso
Copy link

aborruso commented Feb 3, 2024

Hi,
I have these really strange behaviours. I don't know if they are related, but they appeared together.

Copy and paste an URL in the shell

I use Windows Terminal. If I copy the URL "https://github.com/" and paste it in the shell the dots are replaced by n: I have https://githubncom/

image

But it works in the other shells

image

Numeric keypad does not work

If I open pengwin shell and I click 1, 2, ecc., ENTER in the numeric keypad, nothing happens.

If I open the other shells the numeric keypad buttons work.

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?

Insert here:

Pengwin Version

Run grep "PENGWIN_VERSION" /etc/os-release in Pengwin.

Insert here: PENGWIN_VERSION="24.02.0"

WSL general info

Run wslsys in Pengwin.

Insert here:

Release Install Date: Thu Jan  5 16:10:17 CET 2023
Branch: ni_release
Build: 22631
Full Build: 22621.1.amd64fre.ni_release.220506-1250
Display Scaling: 1
Locale (Windows): it_IT
Theme (Windows): light
Uptime (Windows): 2d 2h 17m
Version (WSL): 2
Uptime (WSL): 0d 0h 12m
Release: Pengwin
Kernel: Linux 5.15.133.1-microsoft-standard-WSL2
Packages: 1473
IPv4 Address: 172.21.207.137
System Type (Windows): Desktop
SystemD Status: enabled
@aborruso aborruso added the Bug This is a problem. label Feb 3, 2024
@aborruso
Copy link
Author

aborruso commented Feb 4, 2024

It could be a ohmyzsh problem, because if I run bash, I have no problem.
I have opened a related issue ohmyzsh/ohmyzsh#12196

@crramirez
Copy link
Collaborator

Interesting, let's see what they say. Thanks for reporting

@aborruso
Copy link
Author

aborruso commented Feb 7, 2024

Interesting, let's see what they say. Thanks for reporting

We are doing a lot of testing, but we still don't get to the bottom of it

@aborruso
Copy link
Author

aborruso commented Feb 7, 2024

@crramirez please could you make a test?

Apparently, the numeric keypad never works in oh-myzsh.
Can you confirm that in pengwin this is the case for you? That if you click Enter in the numeric keypad nothing happens to you?

@ygol
Copy link

ygol commented Feb 11, 2024

got the same problem since few days/weeks

@aborruso
Copy link
Author

Please, can someone who uses pengwin tell me if the enter key on the numeric keypad works for them?

@crramirez can you do this test?

@ygol
Copy link

ygol commented Feb 11, 2024

the enter key on the numeric keypad doesn't work for me

@aborruso
Copy link
Author

the enter key on the numeric keypad doesn't work for me

Did it previously work for you?

@aborruso
Copy link
Author

@ygol do you also have the problem of copying and pasting URLs, with replacing . with n?

@ygol
Copy link

ygol commented Feb 11, 2024

no. the pasting works ok. just all the keys of the number pad

@aborruso
Copy link
Author

I'm running pengwin with Windows Terminal Preview app. If I switch to the Windows Terminal (the non preview version) all is working correctly .
I found out thanks to @crismanzoni

@ygol
Copy link

ygol commented Feb 16, 2024

indeed. I am also using the terminal preview :)

@crramirez
Copy link
Collaborator

Looks like this is related microsoft/terminal#16641

@ygol
Copy link

ygol commented Feb 16, 2024

this is great. thank you @crramirez I am also using zsh and after adding the following to my zshrc file all is working fine:

# Keypad
# 0 . Enter
bindkey -s "^[Op" "0"
bindkey -s "^[On" "."
bindkey -s "^[OM" "^M"
# 1 2 3
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
# 4 5 6
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
bindkey -s "^[Ov" "6"
# 7 8 9
bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9"
# + -  * /
bindkey -s "^[Ok" "+"
bindkey -s "^[Om" "-"
bindkey -s "^[Oj" "*"
bindkey -s "^[Oo" "/"

@crramirez
Copy link
Collaborator

Hopefully they fix the issue before it goes out preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a problem.
Projects
None yet
Development

No branches or pull requests

3 participants