Wez Furlong's patch to add xterm mouse reporting and proper mouse