fgl_fglgui() identifies whether the application is to display in graphical or character mode by returning the current value of the GUI environment variable. This function exists for the purposes of compatibility.
The function has no parameters.
MAIN
IF fgl_fglgui() THEN
CALL fgl_winmessage("fgl_fglgui()","You are running a graphical client", "info")
ELSE
CALL fgl_winmessage("fgl_fglgui()","You are running a text mode client", "info")
END IF
END MAIN