Adds xterm mouse reporting and miscellaneous features to Terminal.app. forked from mouseterm.