You can tell by checking whether the program has itself enabled the mouse (wp->base.mode & ALL_MOUSE_MODES).
On Mon, Sep 24, 2012 at 10:56:17PM +0100, Thomas Adam wrote: > On 24 September 2012 20:57, Sergey Naumov <sknau...@gmail.com> wrote: > > At weekends I will try to research how to determine that we are in a > > "real" terminal, not in a terminal program like mc or vim. Then it > > will be possible to automatically enter copy mode at the "real" > > terminal, but use mouse as usual in terminal programs. > > Regardless of this feature (which is now in git HEAD) your logic is > flawed regarding the circumstances of this -- what if I want to scroll > through some program's output, for instance? > > -- Thomas Adam > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users