mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-17 22:05:22 -05:00
vt: add support for \E[?1000h - report mouse button events
This commit is contained in:
parent
a102ff09f9
commit
e5fc266cdb
4 changed files with 183 additions and 24 deletions
38
csi.c
38
csi.c
|
|
@ -593,23 +593,32 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
break;
|
||||
|
||||
case 1000:
|
||||
LOG_WARN("unimplemented: report mouse clicks");
|
||||
term->mouse_tracking = MOUSE_CLICK;
|
||||
break;
|
||||
|
||||
case 1002:
|
||||
LOG_WARN("unimplemented: report cell mouse motion");
|
||||
LOG_WARN("unimplemented: report button and mouse motion");
|
||||
/* term->mouse_tracking = MOUSE_DRAG; */
|
||||
break;
|
||||
|
||||
case 1003:
|
||||
LOG_WARN("unimplemented: report all mouse events");
|
||||
/* term->mouse_tracking = MOUSE_MOTION; */
|
||||
break;
|
||||
|
||||
case 1005:
|
||||
LOG_WARN("unimplemented: UTF-8 mouse");
|
||||
/* term->mouse_reporting = MOUSE_UTF8 */
|
||||
break;
|
||||
|
||||
case 1006:
|
||||
LOG_WARN("unimplemented: SGR mouse");
|
||||
/* term->mouse_reporting = MOUSE_SGR */
|
||||
break;
|
||||
|
||||
case 1015:
|
||||
LOG_WARN("unimplemented: URXVT mosue");
|
||||
/* term->mouse_reporting = MOUSE_URXVT */
|
||||
break;
|
||||
|
||||
case 1049:
|
||||
|
|
@ -665,24 +674,13 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
term->hide_cursor = true;
|
||||
break;
|
||||
|
||||
case 1000:
|
||||
LOG_WARN("unimplemented: report mouse clicks");
|
||||
break;
|
||||
|
||||
case 1002:
|
||||
LOG_WARN("unimplemented: report cell mouse motion");
|
||||
break;
|
||||
|
||||
case 1005:
|
||||
LOG_WARN("unimplemented: UTF-8 mouse");
|
||||
break;
|
||||
|
||||
case 1006:
|
||||
LOG_WARN("unimplemented: SGR mouse");
|
||||
break;
|
||||
|
||||
case 1015:
|
||||
LOG_WARN("unimplemented: URXVT mosue");
|
||||
case 1000: /* MOUSE_NORMAL */
|
||||
case 1002: /* MOUSE_BUTTON_EVENT */
|
||||
case 1003: /* MOUSE_ANY_EVENT */
|
||||
case 1005: /* MOUSE_UTF8 */
|
||||
case 1006: /* MOUSE_SGR */
|
||||
case 1015: /* MOUSE_URXVT */
|
||||
term->mouse_tracking = MOUSE_NONE;
|
||||
break;
|
||||
|
||||
case 1049:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue