dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

scroll-9999 (525B)


      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 
      9 struct rule rules[] = {
     10 	/* sequence     event        lines */
     11 	{"\033[5;2~",   SCROLL_UP,   -1},	/* [Shift] + [PageUP] */
     12 	{"\033[6;2~",   SCROLL_DOWN, -1},	/* [Shift] + [PageDown] */
     13 	{"\033[1;3A",   SCROLL_UP,   10}, /* alt + up */
     14 	{"\033[1;3B",   SCROLL_DOWN, 10}, /* alt + down */
     15 };