Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
609 B

4 years ago
  1. /*
  2. * Define ESC sequences to use for scroll events.
  3. * Use "cat -v" to figure out favorite key combination.
  4. *
  5. * lines is the number of lines scrolled up or down.
  6. * If lines is negative, it's the fraction of the terminal size.
  7. */
  8. struct rule rules[] = {
  9. /* sequence event lines */
  10. {"\033[5;2~", SCROLL_UP, -1}, /* [Shift] + [PageUP] */
  11. {"\033[6;2~", SCROLL_DOWN, -1}, /* [Shift] + [PageDown] */
  12. /* mouse binding shadows ^E and ^Y, so it's disabled by default */
  13. //{"\031", SCROLL_UP, 1}, /* mouse wheel up */
  14. //{"\005", SCROLL_DOWN, 1}, /* mouse wheel Down */
  15. };