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

Unable to use backspace (gets converted to C-h) #43

Open
MorganJamesSmith opened this issue Dec 2, 2024 · 0 comments
Open

Unable to use backspace (gets converted to C-h) #43

MorganJamesSmith opened this issue Dec 2, 2024 · 0 comments

Comments

@MorganJamesSmith
Copy link

Hello!

I'm trying to run emacs on tmux on kmscon.

Running emacs directly on kmscon means that certain key combinations get processed before emacs can see them. For example typing C-m only gives emacs "RET" instead of C-m. So I use tmux which seems to fix that issue for almost all keys.

The backspace key seems to be an exception though. When pressing backspace tmux sends emacs "C-h".

After quite a bit of research I believe the culprit may be src/shared//shl-pty.c:112.

	/* erase character should be normal backspace, PLEASEEE! */
	attr.c_cc[VERASE] = 010;

This bit of code seems to force the terminal to use C-h as the erase character. I would much prefer to use ^? as the erase character which I think might be more common now?

Honestly I've spent a long time looking at this stuff and I have more questions then when I started. Any help would be much appreciated.

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

1 participant