probably. are you sure you have correctly configured them to enable mouse when inside tmux?
On Fri, 5 Aug 2022, 13:07 Aleksandr Jakušev, <alex.jakus...@gmail.com> wrote: > I wonder if something is not right with applications requesting mouse > support from inside tmux... When I have mouse support enabled in tmux, tmux > scroll kicks in no matter what app is running inside tmux, as if no mouse > support was requested. > > This is what I can get from shell running inside tmux: > > pkg-config --modversion ncurses > 5.9.20130511 > > echo $TERM > tmux-256color > > infocmp $TERM > # Reconstructed via infocmp from file: > /users/{...}/terminfo/t/tmux-256color > tmux-256color|tmux with 256 colors, > am, hs, km, mir, msgr, xenl, > colors#256, cols#80, it#8, lines#24, pairs#32767, > > acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, > bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, > clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M, > csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, > cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, > cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM, > cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, > dl=\E[%p1%dM, dl1=\E[M, dsl=\E]0;\007, ed=\E[J, el=\E[K, > el1=\E[1K, enacs=\E(B\E)0, flash=\Eg, fsl=^G, home=\E[H, > ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, > ind=^J, is2=\E)0, kbs=^H, kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, > kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kend=\E[4~, kf1=\EOP, > kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, > kf4=\EOS, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, > kf9=\E[20~, khome=\E[1~, kich1=\E[2~, kmous=\E[M, > knp=\E[6~, kpp=\E[5~, nel=\EE, op=\E[39;49m, rc=\E8, > rev=\E[7m, ri=\EM, ritm=\E[23m, rmacs=^O, rmcup=\E[?1049l, > rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, > rs2=\Ec\E[?1000l\E[?25h, sc=\E7, > > setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m, > > setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m, > > sgr=\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;m%?%p9%t\016%e\017%;, > sgr0=\E[m\017, sitm=\E[3m, smacs=^N, smcup=\E[?1049h, > smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, > tbc=\E[3g, tsl=\E]0;, > > On Friday, 5 August 2022 at 11:39:45 UTC+1 Aleksandr Jakušev wrote: > >> Yes, I tried both disabling and enabling mouse support - in my case it >> does not make any difference to the applications running inside tmux. >> >> I don't think it is a problem with tmux per se, because on other machines >> that I have access to, mouse is working OK from inside tmux. >> >> I also don't think that this is a problem with my build - if tmux itself >> is responding to mouse events. >> >> Something must be wrong with my environment, but I am not sure where to >> start looking... >> >> On Friday, 5 August 2022 at 07:07:46 UTC+1 nicholas...@gmail.com wrote: >> >>> No, this is not the case, if the application requests the mouse tmux >>> will pass mouse events whether the mouse option is on or off. Having mouse >>> on only controls whether tmux itself responds to the mouse, if the >>> application requests the mouse as well then it will have priority. >>> >>> >>> On Fri, 5 Aug 2022, 03:31 Scott Rochford, <annihi...@gmail.com> wrote: >>> >>>> I believe you need to decide whether you want to use your mouse for >>>> tmux, or for the apps running inside it - I don't think you can have both >>>> simultaneously. >>>> >>>> I presume if you disable mouse support in tmux itself, it works for the >>>> apps running inside it? If so, you could bind a key to toggle mouse >>>> support on and off and switch between the modes as desired. You could set >>>> up an indicator or colour hint on the tmux status bar to indicate which >>>> mode it is in. >>>> >>>> On Fri, 5 Aug 2022 at 05:02, Aleksandr Jakušev <alex.j...@gmail.com> >>>> wrote: >>>> >>>>> Update: I rebuilt tmux v 3.3a - same problem >>>>> >>>>> On Thursday, 4 August 2022 at 19:49:43 UTC+1 Aleksandr Jakušev wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I have just built tmux from commit 7b8ececd : >>>>>> tmux -V >>>>>> tmux next-3.4 >>>>>> >>>>>> However, when I run programs from inside tmux, they don't receive >>>>>> mouse events. For example, behaviour like this: >>>>>> >>>>>> mc: use mouse to switch panes, scroll and select files >>>>>> vim: use mouse to put cursor on certain line; scroll, select text >>>>>> >>>>>> Scenario 1: running directly from terminal (urxvt and ssh with putty) >>>>>> mc: OK >>>>>> vim: OK >>>>>> >>>>>> Scenario 2: same terminals as above, but use screen, not tmux >>>>>> mc: OK >>>>>> vim: OK >>>>>> >>>>>> Scenario 3: same terminals as above, but use tmux >>>>>> mc: does not respond to mouse >>>>>> vim: does not respond to mouse >>>>>> >>>>>> I believe tmux has mouse support. When I "set -g mouse on", I can use >>>>>> mouse to scroll/select old lines in tmux. However, apps started from >>>>>> inside >>>>>> tmux don't respond to mouse any more... >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "tmux-users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to tmux-users+...@googlegroups.com. >>>>> To view this discussion on the web, visit >>>>> https://groups.google.com/d/msgid/tmux-users/d199f475-eaf3-4de3-8ef4-f1afa5d6d5dfn%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/tmux-users/d199f475-eaf3-4de3-8ef4-f1afa5d6d5dfn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "tmux-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to tmux-users+...@googlegroups.com. >>>> >>> To view this discussion on the web, visit >>>> https://groups.google.com/d/msgid/tmux-users/CAAqsAtTOTOUN0ac7wiP2w-q0pje-gV5nCYbXx8iCsqW_%3DECZUQ%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/tmux-users/CAAqsAtTOTOUN0ac7wiP2w-q0pje-gV5nCYbXx8iCsqW_%3DECZUQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tmux-users+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/d17f8a9c-e355-400c-bda6-90bf2bb653e4n%40googlegroups.com > <https://groups.google.com/d/msgid/tmux-users/d17f8a9c-e355-400c-bda6-90bf2bb653e4n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcFaVypTjViy9b_bE5-g3rknbBZnQNPD%3DXMhJn1W31V7TQ%40mail.gmail.com.