Re: [hackers] [st] Remove ^E and ^Y

From: k0ga <k0ga_AT_shike2.com>
Date: Sat, 16 May 2020 10:46:23 +0000

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
> _AT_@ -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
>
>
Received on Sat May 16 2020 - 12:46:23 CEST

This archive was generated by hypermail 2.3.0 : Sat May 16 2020 - 12:48:37 CEST