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

Delete key produces tilde #116

Open
Bilge opened this issue Nov 16, 2015 · 4 comments
Open

Delete key produces tilde #116

Bilge opened this issue Nov 16, 2015 · 4 comments

Comments

@Bilge
Copy link

Bilge commented Nov 16, 2015

When pressing the delete key it crease a tilde character (~) instead of deleting after the cursor position. However, the backspace key works correctly by deleting before the cursor position.

@sserbin
Copy link
Contributor

sserbin commented Dec 17, 2015

What is your libedit version? It seems like it was a problem back in 2003 but was fixed since then.

@Bilge
Copy link
Author

Bilge commented Dec 17, 2015

libedit2:
  Installed: 2.11-20080614-5

Perhaps it has something to do with using a UK keyboard layout?

@sserbin
Copy link
Contributor

sserbin commented Dec 18, 2015

I doubt that. That appears to be a rather outdated libedit version - if there's a more recent version available in your system repositories it's definitely worth upgrading. Out of curiousity, what's the distributive/version you are using?
According to https://ghc.haskell.org/trac/ghc/ticket/2741 - putting bind "\e[3~" ed-delete-next-char in your ~/.editrc should fix it.

@Bilge
Copy link
Author

Bilge commented Dec 18, 2015

I'm using Debian GNU/Linux 7.8 (wheezy). As you say, adding that line to my ~/.editrc fixes the issue, although if you delete the last character in the line, it places the cursor before the next to last character in the line, which may be intentional but I've not seen another editor that does this before. This has the effect that, if you hold down the delete key, it will delete the entire line instead of just up to the end of the line.

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