Support for SGR mouse reporting

This adds supports for SGR mouse reporting and uses it for non-rxvt
terminals. The decoder for UTF-8 sequences now also checks for invalid
UTF-8.

Fixes: #1
parent e4a5482c
Pipeline #58852087 passed with stage
in 37 seconds