2012/9/24 Thomas Adam <tho...@xteddy.org>:
> On 23 September 2012 20:56, Sergey Naumov <sknau...@gmail.com> 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 pull to new lines, but without success
>> - when we a scrolling, gd->hsize==0. If we can check in
>> window_copy_mouse() that there is a space to scroll to, we can send
>> scroll_only==1 to window_copy_cursor_up().
>
> If your aim is to get scrolling without affecting the position of the
> cursor when you enter copy-mode, there's been a patch for this sent to
> this list recently -- but it's still very much in review.
>
> -- Thomas Adam

Can't find this patch in mailing list history (for last 3 months), but
it seems that attached patch is all what have to be done to hardcode
"scroll first then move cursor" behavior. Unfortunately my tmux
knowledge is not good enough yet to quickly write fully configurable
patch.
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.

Sincerely yours,
Sergey Naumov.

Attachment: tmux-scroll-before-move-cursor.patch
Description: Binary data

------------------------------------------------------------------------------
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

Reply via email to