determine whether Maple is running inside a GUI
IsWorksheetInterface( 'Standard' )
The IsWorksheetInterface command returns the value true if Maple is running within a GUI (worksheet) interface, and returns the value false otherwise.
IsWorksheetInterface ( 'Standard' ) is equivalent to IsWorksheetInterface().
The following commands are executed when Maple help pages are generated. As such, these commands return false regardless of the interface used to view this help topic.
Download Help Document