config.def.h 496 B

123456789101112131415
  1. /*
  2. * Define ESC seqences to use for scroll events.
  3. * Use "cat -v" to figure out favorit key combination.
  4. *
  5. * lines is the number of lines scrolled up or down. If lines is negaive,
  6. * its the: -1 is 1/1.
  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. };