Shell integration: Allow sending click events to shells using y co-ordinates relative to prompts

Note that I havent actually tested the implementation, I leave that to
@okapia.

Fixes #9500
This commit is contained in:
Kovid Goyal
2026-02-15 10:12:22 +05:30
parent be325ccfcb
commit 66a9963fe9
5 changed files with 29 additions and 8 deletions

View File

@@ -154,6 +154,7 @@ typedef struct {
unsigned int redraws_prompts_at_all: 1;
unsigned int uses_special_keys_for_cursor_movement: 1;
unsigned int supports_click_events: 1;
unsigned int relative_click_events: 1;
};
unsigned int val;
} prompt_settings;
@@ -307,7 +308,7 @@ void screen_modify_other_keys(Screen *self, unsigned, unsigned);
void screen_report_key_encoding_flags(Screen *self);
int screen_detect_url(Screen *screen, unsigned int x, unsigned int y);
int screen_cursor_at_a_shell_prompt(const Screen *);
bool screen_prompt_supports_click_events(const Screen *);
bool screen_prompt_supports_click_events(const Screen *, bool *is_relative);
bool screen_fake_move_cursor_to_position(Screen *, index_type x, index_type y);
bool screen_send_signal_for_key(Screen *, char key);
bool get_line_edge_colors(Screen *self, color_type *left, color_type *right);