fix up xterm mouse mode