config.def.h 561 B

123456789101112131415
  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. {"\031", SCROLL_UP, 1}, /* mouse wheel up */
  13. {"\005", SCROLL_DOWN, 1}, /* mouse wheel Down */
  14. };