Re: native xterm scrolling with mouse

2012-09-23 Thread Sergey Naumov
2012/9/19 Thomas Adam : > On Wed, Sep 19, 2012 at 09:19:35PM +0400, Sergey Naumov wrote: >> 2012/9/19 Thomas Adam : >> > On Wed, Sep 19, 2012 at 01:37:59PM +0400, Sergey Naumov wrote: >> >> Is it possible to enable native xterm mouse scrolling while in tmux? >> >> What I actually want is to use xte

Re: native xterm scrolling with mouse

2012-09-23 Thread Thomas Adam
On Sun, Sep 23, 2012 at 04:03:43PM +0400, Sergey Naumov wrote: > 2012/9/19 Thomas Adam : > > On Wed, Sep 19, 2012 at 09:19:35PM +0400, Sergey Naumov wrote: > >> 2012/9/19 Thomas Adam : > >> > On Wed, Sep 19, 2012 at 01:37:59PM +0400, Sergey Naumov wrote: > >> >> Is it possible to enable native xter

Re: native xterm scrolling with mouse

2012-09-23 Thread Sergey Naumov
> Run mc as: > > mc -x Thanks, it works! By the way, I suggest you consider to make tmux scrolling to behave like mcedit's one (at least optional): scroll first (preserving relational cursor position) and if we are at the top, then move cursor up. Imagine that you use terminal and want to scroll

Re: native xterm scrolling with mouse

2012-09-23 Thread Sergey Naumov
Thomas, how do you think, is there a way to detect if we are in terminal or in program that is running in terminal? May be by raw mode or something else? Entering to scroll mode automatically by mouse wheel is very convenient in terminal, but it breaks mouse behavior for terminal programs. May be

Re: native xterm scrolling with mouse

2012-09-23 Thread Thomas Adam
On 23 September 2012 20:56, Sergey Naumov wrote: > Also, could you explain how to detect if there is a up/down space > outside visible area we can scroll to? I have surfed the code a bit a > have tried screen->grid->hsize, because screen_resize_y() uses it to > check if there is some lines to pul