> As far as I see, its only possible to specify e.g. "scroll" but not "scroll
> -m 1000" to limit the scrollback buffer size.
You can try this.
Look at execsh in st.c, find line using: grep -n ^execsh st.c
Change:
DEFAULT(args, ((char *[]) {prog, arg, NULL}));
to:
if(scroll)
DEFAULT(args, ((char *[]) {prog, "-m 1000", arg, NULL}));
else
DEFAULT(args, ((char *[]) {prog, arg, NULL}));
So if you use scroll we add and additional argument in execvp.
Let me know if it works.
Regards,
mat
Received on Sun Jul 05 2020 - 18:00:16 CEST