Escape code with mouse move

What ESC code is returned when moving the mouse?
At the beginning it is ^[[< but it still returns a character with decimal code 83. It should return characters between ‘0’…‘9’.

I think it is compatible with the xterm protocol described here: Xterm Control Sequences

So: ESC [M b C x C y

Where b is the buttons state, and x and y are the cursor position (the unit is character cells).

Note that this makes cells above 255 unreachable (if you have a large enough screen) so we should implement a newer protocol that supports these

2 Likes