consider implementing xterm mouse mode 1016
xterm recently added a new mouse reporting mode 1016 which works like mode 1006 but reports the coordinates in pixels instead of grid coordinates.
xterm recently added a new mouse reporting mode 1016 which works like mode 1006 but reports the coordinates in pixels instead of grid coordinates.