On Sun, 3 Jun 2012, Marcin Błażejowski wrote:
Is there any way of decide (within a script) if we run gretl_x11 or
gretlcli
mode? Any accesor, function or sth...?
Not really. On Linux you could probably do something clever with
gretl's getenv() function and/or the $(...) mechanism for running
shell commands and capturing the output, but even if possible it
wouldn't be portable.
We could add a $gui accessor if there's demand for it.
Allin Cottrell