On Sat, Mar 26, 2022 at 8:19 AM Marcin Błażejowski <marcin(a)wrzosy.nsb.pl> wrote:
Hi,
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.
Allin