terminal: support click_events=2 (#12953) master
## Context Implements the OSC 133 `click_events=2` such that click events on the terminal are sent to the shell where the y coordinate is sent relative to the prompt pin. See https://sw.kovidgoyal.net/kitty/shell-integration/#click_events=1|2:~:text=click%5Fevents,xterm further detailed explanation. This should close https://github.com/ghostty-org/ghostty/issues/10865 ### Testing I did some basic manual testing here via the following: ``` ghostty main ❯ printf '\033]133;A;click_events=1\007' && cat ^[[<0;49;4M^[[<0;48;8M^[[<0;47;12M^C ghostty main 5s ❯ printf '\033]133;A;click_events=2\007' && cat ^[[<0;50;1M^[[<0;49;4M^[[<0;48;9M^[[<0;48;14M^C ``` #### Notes This is my first Ghostty PR. All code here is hand-rolled, AI was used to do "smart" code searches/point me in the right direction. I'm actively trying to learn Zig, Ghostty, and get more involved with the community here so I'm avoiding obtuse usage of AI where possible. Any feedback or tips are more than welcome! Thank you! :pray: