浏览代码

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.
Roberto E. Vargas 5 年之前
父节点
当前提交
9ff6fdb255
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      config.def.h

+ 2 - 2
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 */
 };