This is a shorter bit handling in MODE_MOUSE. - st - simple terminal HTML git clone https://git.parazyd.org/st DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit d743b93fdaee4900052a94b37c24073008888002 DIR parent 317b7859210c187f898ddbc8ec0cc50885f340bc HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 1 Jun 2013 13:17:20 +0200 This is a shorter bit handling in MODE_MOUSE. Diffstat: M st.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- DIR diff --git 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);