Add special_key=1 to prompt marking

Kitty uses this for more graceful mouse handling
when the completion pager is active, see
https://github.com/kovidgoyal/kitty/pull/7316#issuecomment-2041279797
This commit is contained in:
Johannes Altmanninger 2024-04-07 08:06:31 +02:00
parent 3b9e3e251b
commit c8f3659737

View File

@ -836,7 +836,7 @@ impl Screen {
// Output the left prompt if it has changed. // Output the left prompt if it has changed.
if left_prompt != zelf.actual_left_prompt { if left_prompt != zelf.actual_left_prompt {
zelf.r#move(0, 0); zelf.r#move(0, 0);
zelf.write_bytes(b"\x1b]133;A\x07"); zelf.write_bytes(b"\x1b]133;A;special_key=1\x07");
let mut start = 0; let mut start = 0;
for line_break in left_prompt_layout.line_breaks { for line_break in left_prompt_layout.line_breaks {
zelf.write_str(&left_prompt[start..line_break]); zelf.write_str(&left_prompt[start..line_break]);