Re: [dev] [st] Use scroll with arguments

From: Mateusz Okulus <mmokulus_AT_gmail.com>
Date: Sun, 5 Jul 2020 18:00:16 +0200

> 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

This archive was generated by hypermail 2.3.0 : Sun Jul 05 2020 - 23:48:08 CEST