JetBrains/jediterm — pull request #80 by Plonk42 (2013-11-22 17:21:07+00:00)
Title: Fix X10 compatibility mode reporting, not supposed to use UTF-8

See "Extended coordinates - UTF-8 (1005)" at
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#Mouse%20Tracking

This enables UTF-8 encoding for C x and C y under all tracking modes,
expanding the maximum encodable position from 223 to 2015. For positions
less than 95, the resulting output is identical under both modes. Under
extended mouse mode, positions greater than 95 generate "extra" bytes
which will confuse applications which do not treat their input as a
UTF-8 stream. Likewise, C b will be UTF-8 encoded, to reduce confusion
with wheel mouse events.
Under normal mouse mode, positions outside (160,94) result in byte pairs
which can be interpreted as a single UTF-8 character; applications which
do treat their input as UTF-8 will almost certainly be confused unless
extended mouse mode is active.