public void setToolStatusMessage(String msg, boolean beep) throws ImproperUseException {

		if (isRunningHeadless()) {
			throw new ImproperUseException(
				"The setToolStatusMessage() method can only be used when running headed Ghidra.");
		}

		PluginTool tool = state.getTool();
		if (tool == null) {
			if (beep) {
				printerr(msg);
			}
			return;
		}
		tool.setStatusInfo(msg, beep);
	}
Display a message in tools status bar.
<p>
This method is unavailable in headless mode.

@param msg the text to display.
@param beep if true, causes the tool to beep.
@throws ImproperUseException if this method is run in headless mode
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java