You can tell if you are running with the ui versus the command-line with
"ui-running?".
If you want to see if the listener is open, you can find it's window:
[ listener-gadget? ] find-window
And if you want to get a listener, opening one if it is not open, just call:
get-listener
Is it cheating to just use the "environment" vocabulary and pass in an
indicator that way? I'm new with Factor so don't know of any fancier ways
to reflect on the source/type of the running code.
--Abraham
On Tue, Jun 22, 2021 at 11:32 AM George Cherevichenko <
george.chereviche...@gmail.com>
How can my program know is it running in the listener or as .exe?
George
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk