… | |
… | |
1350 | tt_printf ("\033[<%d;%d;%d%c", |
1350 | tt_printf ("\033[<%d;%d;%d%c", |
1351 | button_number + state, |
1351 | button_number + state, |
1352 | x, |
1352 | x, |
1353 | y, |
1353 | y, |
1354 | release ? 'm' : 'M'); |
1354 | release ? 'm' : 'M'); |
1355 | else if (priv_modes & PrivMode_ExtMouseRight) |
1355 | else if (priv_modes & PrivMode_ExtMouseUrxvt) |
1356 | tt_printf ("\033[%d;%d;%dM", |
1356 | tt_printf ("\033[%d;%d;%dM", |
1357 | code, |
1357 | code, |
1358 | x, |
1358 | x, |
1359 | y); |
1359 | y); |
1360 | else if (priv_modes & PrivMode_ExtModeMouse) |
1360 | else if (priv_modes & PrivMode_ExtMouseUTF8) |
1361 | tt_printf ("\033[M%c%lc%lc", |
1361 | tt_printf ("\033[M%c%lc%lc", |
1362 | code, |
1362 | code, |
1363 | wint_t (32 + x), |
1363 | wint_t (32 + x), |
1364 | wint_t (32 + y)); |
1364 | wint_t (32 + y)); |
1365 | else |
1365 | else |
… | |
… | |
3702 | { 1000, PrivMode_MouseX11 }, |
3702 | { 1000, PrivMode_MouseX11 }, |
3703 | { 1002, PrivMode_MouseBtnEvent }, |
3703 | { 1002, PrivMode_MouseBtnEvent }, |
3704 | { 1003, PrivMode_MouseAnyEvent }, |
3704 | { 1003, PrivMode_MouseAnyEvent }, |
3705 | #if ENABLE_FRILLS |
3705 | #if ENABLE_FRILLS |
3706 | { 1004, PrivMode_FocusEvent }, |
3706 | { 1004, PrivMode_FocusEvent }, |
3707 | { 1005, PrivMode_ExtModeMouse }, |
3707 | { 1005, PrivMode_ExtMouseUTF8 }, |
3708 | { 1006, PrivMode_ExtMouseSGR }, |
3708 | { 1006, PrivMode_ExtMouseSGR }, |
3709 | #endif |
3709 | #endif |
3710 | { 1010, PrivMode_TtyOutputInh }, // rxvt extension |
3710 | { 1010, PrivMode_TtyOutputInh }, // rxvt extension |
3711 | { 1011, PrivMode_Keypress }, // rxvt extension |
3711 | { 1011, PrivMode_Keypress }, // rxvt extension |
3712 | #if ENABLE_FRILLS |
3712 | #if ENABLE_FRILLS |
3713 | { 1015, PrivMode_ExtMouseRight }, // urxvt extension of 1005 |
3713 | { 1015, PrivMode_ExtMouseUrxvt }, // urxvt extension of 1005 |
3714 | #endif |
3714 | #endif |
3715 | // 1035 enable modifiers for alt, numlock NYI |
3715 | // 1035 enable modifiers for alt, numlock NYI |
3716 | // 1036 send ESC for meta keys NYI |
3716 | // 1036 send ESC for meta keys NYI |
3717 | // 1037 send DEL for keypad delete NYI |
3717 | // 1037 send DEL for keypad delete NYI |
3718 | { 1047, PrivMode_Screen }, |
3718 | { 1047, PrivMode_Screen }, |