Detect if running FB with command line?

Hi

 Is there an easy way to detect if FB is running from IDE or command line ?

If running from command line there are several interactive actions I would like to skip

You can check the ISCONSOLEBUILD variable.