ui.Interface.getFrontEndName
Returns the type of the front-end currently in use.
Syntax
ui.Interface.getFrontEndName()
RETURNS STRING
Usage
The ui.Interface.getFrontEndName()
class method returns the type of the
front end used by the program.
Front-end name | Description |
---|---|
GDC |
Desktop front-end |
GMA |
Mobile front-end for Androidâ„¢ |
GMI |
Mobile front-end for iOS |
GWC |
Web browser front-end |
GBC |
Genero Browser Client front-end |
Console |
Text front-end (dumb terminal) |
Important: When calling this method, the user interface module of the
runtime system will initialize. As result, in text mode, the terminal will be initialized and get
some escape sequences. This may corrupt standard output when executing batch programs. Consider
testing the FGLGUI environment variable if you want to check that the batch program executes in text
mode, instead of using the
getFrontEndName()
method.