Fix xterm mouse support.