pub const MOUSE_ENABLE: &[u8] = b"\x1b[?1001l\x1b[?1003l\x1b[?1005l\x1b[?1015l\x1b[?1016l\x1b[?1000;1002;1006h\x1b[?1000h\x1b[?1002h\x1b[?1006h";Expand description
Enable SGR mouse reporting with mode-hygiene pre-reset:
- reset legacy/alternate encodings (
1001/1003/1005/1015/1016) - enable canonical SGR modes (
1000 + 1002 + 1006) - emit
1016lbefore1006hso SGR mode remains active on terminals where trailing1016lforces X10 fallback.
Enables:
- 1000: Normal mouse tracking
- 1002: Button event tracking (motion while pressed)
- 1006: SGR extended coordinates (supports > 223)