mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -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
8
csi.c
8
csi.c
|
|
@ -672,6 +672,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
term->mouse_tracking = MOUSE_MOTION;
|
||||
break;
|
||||
|
||||
case 1004:
|
||||
term->focus_events = true;
|
||||
break;
|
||||
|
||||
case 1005:
|
||||
LOG_WARN("unimplemented: UTF-8 mouse");
|
||||
/* term->mouse_reporting = MOUSE_UTF8; */
|
||||
|
|
@ -751,6 +755,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
term->mouse_tracking = MOUSE_NONE;
|
||||
break;
|
||||
|
||||
case 1004:
|
||||
term->focus_events = false;
|
||||
break;
|
||||
|
||||
case 1049:
|
||||
if (term->grid == &term->alt) {
|
||||
term->grid = &term->normal;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue