From 4c40a4dc245f7715f4891ed02d71475628e7a959 Mon Sep 17 00:00:00 2001 From: stkhan Date: Mon, 20 Jun 2022 19:54:29 +0000 Subject: new directory structure --- utils/scroll-0.1/config.def.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 utils/scroll-0.1/config.def.h (limited to 'utils/scroll-0.1/config.def.h') diff --git a/utils/scroll-0.1/config.def.h b/utils/scroll-0.1/config.def.h new file mode 100644 index 0000000..536db70 --- /dev/null +++ b/utils/scroll-0.1/config.def.h @@ -0,0 +1,16 @@ +/* + * Define ESC sequences to use for scroll events. + * Use "cat -v" to figure out favorite key combination. + * + * lines is the number of lines scrolled up or down. + * If lines is negative, it's the fraction of the terminal size. + */ + +struct rule rules[] = { + /* sequence event lines */ + {"\033[5;2~", SCROLL_UP, -1}, /* [Shift] + [PageUP] */ + {"\033[6;2~", SCROLL_DOWN, -1}, /* [Shift] + [PageDown] */ + /* mouse binding shadows ^E and ^Y, so it's disabled by default */ + //{"\031", SCROLL_UP, 1}, /* mouse wheel up */ + //{"\005", SCROLL_DOWN, 1}, /* mouse wheel Down */ +}; -- cgit v1.2.3