Implement xterm extended mouse mode