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

Bash for Windows and wrong home/end/del #5301

Closed
ghost opened this issue Aug 14, 2016 · 4 comments
Closed

Bash for Windows and wrong home/end/del #5301

ghost opened this issue Aug 14, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 14, 2016

The home/end/del keys aren't working properly with Bash for Windows.
How about an option to map them to ^A, ^E, ^D like you have for ^H ??

@mcornella
Copy link
Member

Maybe. What character codes do they send? Press CTRL+V and then the key to see the character code.

@apjanke
Copy link
Contributor

apjanke commented Aug 22, 2016

What do you want to bet that the Home and End behaviors are related to smkx/rmkx?

@mcornella
Copy link
Member

On latest version of OMZ:

Home: ^[OH
End: ^[OF
Del: ^[[3~

With #5113 merged:

Home: ^[[H
End: ^[[F
Del: ^[[3~

In both these cases the keys do their job well.

Here's the bindkey setup:

$ bindkey '^[OH'
"^[OH" beginning-of-line
$ bindkey '^[OF'
"^[OF" end-of-line
$ bindkey '^[[3~'
"^[[3~" delete-char

I'm using Windows 10 Anniversary Update btw. You can find those character codes with CTRL+V followed by the key; follow this screencast if you're unsure about that.

@mcornella
Copy link
Member

Closing because it seems to work fine on my end and there's no response. You would better direct your inquiries to [BashOnWindows](official repository).

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

No branches or pull requests

2 participants