mux: refactor

emacs and vim respond to xterm keys if the terminfo begins with xterm.

vim, mutt and other things break in this case, or if bce is set.  at
least in vim one can do `set t_ut=`.