X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/405fd89ac1d333be79325417c973a07ccad67453..d743b93fdaee4900052a94b37c24073008888002:/st.c diff --git a/st.c b/st.c index 321b58d..bcb36a2 100644 --- a/st.c +++ b/st.c @@ -1784,8 +1784,7 @@ tsetmode(bool priv, bool set, int *args, int narg) { MODBIT(term.mode, 0, MODE_MOUSEBTN); break; case 1003: /* 1003: enable all mouse reports */ - MODBIT(term.mode, set, MODE_MOUSEMOTION); - MODBIT(term.mode, set, MODE_MOUSEBTN); + MODBIT(term.mode, set, MODE_MOUSE); break; case 1004: MODBIT(term.mode, set, MODE_FOCUS); @@ -1815,9 +1814,16 @@ tsetmode(bool priv, bool set, int *args, int narg) { case 1048: tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD); break; + /* Not implemented mouse modes. See comments there. */ case 9: /* X10 compatibility mode */ case 1001: /* mouse highlight mode; can hang the - terminal when implemented. */ + terminal by design when implemented. */ + case 1005: /* UTF-8 mouse mode; will confuse + applications not supporting UTF-8 + and luit. */ + case 1015: /* urxvt mangled mouse mode; incompatible + and can be mistaken for other control + codes. */ default: fprintf(stderr, "erresc: unknown private set/reset mode %d\n",