I\'m currently using tmux with xterm-256color $TERM variable. When in bash under tmux, pressing home/end would insert tilde characters (~). Outside of tmux the home/end keys wor
It appears the main problem is with using xterm-256color for $TERM. I switched $TERM to screen-256color and the problem went away.