problem with backspace key in xterm-256color
I'm running mutt in xfce4-terminal, which supports 256 colors, but I
have to manually set xfce4-terminal in its preferences dialogue to
identify as "xterm-256color" for mutt to display my 256-color colors.
So far, so good.
Now I've noticed that with TERM=xterm-256color, mutt doesn't recognize
the backspace key in the index or the pager (I have bindings for
<backspace> in the .muttrc, but it says "key not bound"). When I set
TERM to "xterm", the backspace key works fine.
In the "Advanced" tab of my xfce4-terminal settings, I have a setting
for "backspace key generates ..." with the options
- Auto-detect
- ASCII DEL
- Escape Sequence
- Control-H
Only if I set this to "Control-H" does mutt recognize the backspace
key while TERM is set to xterm-256color.
However, in that case, my editor (jed) doesn't recognize the backspace
anymore as such, and given that that means I'll have trouble with
other applications I'd rather go back to "Auto-detect" for the
terminal config.
Does anyone know a way
-- either to tell mutt to listen for whatever the backspace key
generates when I have TERM=xterm-256color? How would I find out what
the terminal emits when the backspace key is pressed?
-- or to tell the xfce4-terminal to go back to the same behavior it
has with TERM=xterm, which is to "do the right thing" and presumably
emit "Ctrl-H" for the backspace key when in mutt?
Googling, I just found this long thread:
http://bugs.mutt.org/trac/ticket/2952
but if there were practical solutions therein I failed to grasp them.
Thanks,
m.