st/mouse.h
speedie 987e8cbe18 Add new st build from https://codeberg.org/speedie/st-next-2.
Old build can be found in the previous-2 branch. This one has sixel
support among other things, not to mention it draws text properly.
2022-11-13 22:16:04 +01:00

25 lines
963 B
C

/* Mouse binds
*
* CONTROL = Left Control/Ctrl key
* SHIFT = Left Shift key
* ALT = Left Alt key
* ALTR = Right Alt key
* SUPER = Left Super/Windows/Command key
* SUPERR = Right Super/Windows/Command key
* ANY = Any of the above modifiers
* NONE = No modifier at all
*
* Note that overloading Button1 will disable the selection.
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
{ ANY, Button4, kscrollup, {.i = 1}, 0, -1 },
{ ANY, Button5, kscrolldown, {.i = 1}, 0, -1 },
{ ANY, Button3, selpaste, {.i = 0}, 1 },
{ SHIFT, Button4, ttysend, {.s = "\033[5;2~" } },
{ ANY, Button4, ttysend, {.s = "\031" } },
{ SHIFT, Button5, ttysend, {.s = "\033[6;2~" } },
{ ANY, Button5, ttysend, {.s = "\005" } },
};