Sorry, this patch is for scroll, no for st.

On Sat, May 16, 2020 at 09:57:28AM +0000, Roberto E. Vargas wrote:
> ^E and ^Y are characters reserved by POSIX shell in emacs
> editing mode for "control of line" and "yank". St is generating
> ^E and ^Y as a hack because vi and less uses them for scroll
> backward/forward. being the only terminal emulator where
> mouse wheel can be used with them. A new patch was sent to
> st to do the same trick for terminal scroll, and making st
> returns shift+prev/next for shift+wheel.
> ---
>  config.def.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/config.def.h b/config.def.h
> index 36b1a45..51c493b 100644
> --- a/config.def.h
> +++ b/config.def.h
> @@ -10,6 +10,4 @@ struct rule rules[] = {
>       /* sequence     event        lines */
>       {"\033[5;2~",   SCROLL_UP,   -1},       /* [Shift] + [PageUP] */
>       {"\033[6;2~",   SCROLL_DOWN, -1},       /* [Shift] + [PageDown] */
> -     {"\031",        SCROLL_UP,    1},       /* mouse wheel up */
> -     {"\005",        SCROLL_DOWN,  1},       /* mouse wheel Down */
>  };
> -- 
> 2.26.2
> 
> 

Reply via email to