On Sat, 26 Mar 2022, Sven Schreiber wrote:
Am 26.03.2022 um 18:30 schrieb Cottrell, Allin:
> On Sat, Mar 26, 2022 at 8:19 AM Marcin Błażejowski <marcin(a)wrzosy.nsb.pl>
>> is it possible to check whether a running script was executed by
>> 'gretlcli' or GUI interface (like gretl_x11)?
> In C, yes, you can use the libgretl function gretl_in_gui_mode(). In
> hansl, no -- unless perhaps you were to do something clever with the
> shell command ("!").
> An accessor could be added for this, if there's a convincing use-case.
A sub-element of $sysinfo would be enough, I believe, no need for a
Yes, that occurred to me too.