Expand histsize, increase scroll speed

This commit is contained in:
Sergey Silaev 2023-11-24 12:03:20 +01:00
parent e40000a15d
commit a059079fab
Signed by: enodllew
SSH key fingerprint: SHA256:o1kYztrHezJnX1Y3zRXSMTNhAZQmLT3jF5ZwRCskMNk
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ st.o
x.o x.o
*.tar.gz *.tar.gz
*.diff *.diff
.idea/

View file

@ -22,7 +22,7 @@ static int borderpx = 2;
* 4: value of shell in /etc/passwd * 4: value of shell in /etc/passwd
* 5: value of shell in config.h * 5: value of shell in config.h
*/ */
static char *shell = "/bin/zsh"; static char *shell = "/bin/bash";
char *utmp = NULL; char *utmp = NULL;
/* scroll program: to enable use a string like "scroll" */ /* scroll program: to enable use a string like "scroll" */
char *scroll = NULL; char *scroll = NULL;
@ -219,8 +219,8 @@ static MouseShortcut mshortcuts[] = {
MouseKey mkeys[] = { MouseKey mkeys[] = {
/* button mask function argument */ /* button mask function argument */
{ Button4, ShiftMask, kscrollup, {.i = 1} }, { Button4, ShiftMask, kscrollup, {.i = 5} },
{ Button5, ShiftMask, kscrolldown, {.i = 1} }, { Button5, ShiftMask, kscrolldown, {.i = 5} },
{ Button4, TERMMOD, zoom, {.f = +1} }, { Button4, TERMMOD, zoom, {.f = +1} },
{ Button5, TERMMOD, zoom, {.f = -1} }, { Button5, TERMMOD, zoom, {.f = -1} },
}; };

2
st.c
View file

@ -35,7 +35,7 @@
#define ESC_ARG_SIZ 16 #define ESC_ARG_SIZ 16
#define STR_BUF_SIZ ESC_BUF_SIZ #define STR_BUF_SIZ ESC_BUF_SIZ
#define STR_ARG_SIZ ESC_ARG_SIZ #define STR_ARG_SIZ ESC_ARG_SIZ
#define HISTSIZE 2000 #define HISTSIZE 60000
/* macros */ /* macros */
#define IS_SET(flag) ((term.mode & (flag)) != 0) #define IS_SET(flag) ((term.mode & (flag)) != 0)