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.
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.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.