mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
csi: implement FocusIn/Out events
This commit is contained in:
parent
9929e902a6
commit
7f6a4f4b6b
4 changed files with 29 additions and 0 deletions
16
terminal.c
16
terminal.c
|
|
@ -267,6 +267,22 @@ term_reverse_index(struct terminal *term)
|
|||
term_cursor_up(term, 1);
|
||||
}
|
||||
|
||||
void
|
||||
term_focus_in(struct terminal *term)
|
||||
{
|
||||
if (!term->focus_events)
|
||||
return;
|
||||
vt_to_slave(term, "\033[I", 3);
|
||||
}
|
||||
|
||||
void
|
||||
term_focus_out(struct terminal *term)
|
||||
{
|
||||
if (!term->focus_events)
|
||||
return;
|
||||
vt_to_slave(term, "\033[O", 3);
|
||||
}
|
||||
|
||||
static int
|
||||
linux_mouse_button_to_x(int button)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue