It appears the main problem is with using xterm-256color for $TERM. I switched $TERM to screen-256color and the problem went away.
It appears the main problem is with using xterm-256color for $TERM. I switched $TERM to screen-256color and the problem went away.