shift + scroll, smaller scrollback buffer

This commit is contained in:
Luca Bilke 2023-11-10 13:04:52 +01:00
parent 9e33da9ac7
commit c1c84d6fa5
2 changed files with 4 additions and 4 deletions

View File

@ -199,9 +199,9 @@ static uint forcemousemod = ShiftMask;
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ XK_ANY_MOD, Button4, kscrollup, {.i = 3} }, /* You can increase .i to increase scroll speed*/
{ XK_ANY_MOD, Button5, kscrolldown, {.i = 3} },
// { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, kscrollup, {.i = 3} }, /* You can increase .i to increase scroll speed*/
{ ShiftMask, Button5, kscrolldown, {.i = 3} },
};
/* Internal keyboard shortcuts. */

2
st.c
View File

@ -36,7 +36,7 @@
#define CAR_PER_ARG 4
#define STR_BUF_SIZ ESC_BUF_SIZ
#define STR_ARG_SIZ ESC_ARG_SIZ
#define HISTSIZE 10000
#define HISTSIZE 5000
/* macros */
#define IS_SET(flag) ((term.mode & (flag)) != 0)