
This is a more robust and comprehensive solution than adding lines of code here and there to different config files and praying that everything works.
#ITERM2 DELETE WORD INSTALL#
nf is that your computer is missing some information about the tmux terminal that you have to install manually. The focus here is on RGB colors but I think that the underlying cause of the colors being off and backspace not working when set-option default-terminal "screen-256color" is used in. nf entirely and still get the same behavior.ĭoes the command line use a different set of key bindings that would affect BSpace functionality?Ī lot of answers have not worked for me but I finally found this Gist that works for MacOs. I've done a stty erase ^? as well, both before and after invoking tmux and that does not affect the behavior. :list-keys within tmux confirms that the mapping is occurring. nf as shown below to both C-h and C-?, neither work. I've also tried binding the Backspace key in the. Stty -a | grep erase reports as "^H" (bad, I think I want ^?) Some debugging I've done within the tmux window: $TERM=screen-256colorĪppres XTerm | grep backarrowKeyIsErase reports as true (good)Īppres XTerm | grep ptyInitialErase reports as true (good)

Using C-h instead of the Delete key does delete the 's' character in this situation. For example, :lists will not delete the 's' character. The backspace deletes previous characters (as expected) within tmux but not on the tmux command prompt. I'm having trouble with my Backspace key on the tmux command prompt.
