This adds optional MouseFlags that can be used to adjust what is tracked for mouse reporting (leaving the other modes to be handled by the terminal.) This should work on all XTerm style terminals, but on Windows we have no way to be selective here.
This fixes the panic, but also adds defitions for xterm-termite and tmux-256color.
This provides a ColorReset color that resets the color to the default for the terminal.