You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Pointer events can carry where they fall inside a cell. The capability probe asks whether the terminal reports the mouse in pixels (mode 1016, DecModes::sgr_pixel_mouse). When it does and the cell size is known, run() turns the reports on with MouseTracking::SgrPixels and converts each event with MouseEvent::in_cells, so applications still get cell coordinates, now with MouseEvent::inside holding the pixel inside the cell. The cell size follows the terminal's window-size report on resize, through terminal_cell_pixels. HitMap::pick_point returns the same hit as pick, with where the pointer is inside the region, and Slider::value_at_across gives a value that moves smoothly across a cell and equals value_at at a cell's centre. Terminals without mode 1016 or a cell size keep cell reports, and Windows console input stays in cells.