commit 9ff6fdb25513e49abbe3750668b8ee6903326f15
Author:     Roberto E. Vargas <[email protected]>
AuthorDate: Sat May 16 09:57:28 2020 +0000
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Sat May 16 23:07:21 2020 +0200

    Remove ^E and ^Y
    
    ^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.

diff --git a/config.def.h b/config.def.h
index 36b1a45..f18dae8 100644
--- a/config.def.h
+++ b/config.def.h
@@ -10,6 +10,6 @@ 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 */
+       //{"\031",        SCROLL_UP,    1},       /* mouse wheel up */
+       //{"\005",        SCROLL_DOWN,  1},       /* mouse wheel Down */
 };

Reply via email to