I'm having trouble with my Backspace key on the tmux command prompt. The backspace deletes previous characters (as expected) within tmux but not on the tmux command prompt. For example, <PREFIX>:lists<DEL>
will not delete the 's' character. Using C-h
instead of the Delete key does delete the 's' character in this situation. C-?
does NOT delete the 's' character. Some debugging I've done within the tmux window:
$TERM=screen-256color
infocmp reports kbs=\177 (good)
appres XTerm | grep backarrowKeyIsErase reports as true (good)
appres XTerm | grep ptyInitialErase reports as true (good)
stty -a | grep erase reports as "^H" (bad, I think I want ^?)
I've also tried binding the Backspace key in the .tmux.conf
as shown below to both C-h
and C-?
, neither work. :list-keys
within tmux confirms that the mapping is occurring.
bind-key -n BSpace send-keys C-?
I've done a stty erase ^?
as well, both before and after invoking tmux
and that does not affect the behavior. Finally, I've removed my .tmux.conf
entirely and still get the same behavior.
Does the command line use a different set of key bindings that would affect BSpace functionality?