in run_configuration/src/main/java/org/jetbrains/sdk/runConfiguration/DemoRunConfiguration.java [47:61]
public RunProfileState getState(@NotNull Executor executor,
@NotNull ExecutionEnvironment environment) {
return new CommandLineState(environment) {
@NotNull
@Override
protected ProcessHandler startProcess() throws ExecutionException {
GeneralCommandLine commandLine =
new GeneralCommandLine(getOptions().getScriptName());
OSProcessHandler processHandler = ProcessHandlerFactory.getInstance()
.createColoredProcessHandler(commandLine);
ProcessTerminatedListener.attach(processHandler);
return processHandler;
}
};
}