It looks like you're new here. If you want to get involved, click one of these buttons!
How can I check if klayout has been started in batch mode within my ruby script.
the easiest way to is check whether there is a main window:
batch_mode = !RBA::Application::instance.main_window
The main window is nil if in batch mode (-b or -zz). Otherwise it's a non-nil reference to the main window object.