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 it is worth to detect if we are in terminal and only then enter to copy mode?
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(). Sergey Naumov. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users