use of org.jboss.aesh.console.Console in project metron by apache.
the class StellarShell method createConsole.
/**
* Creates the REPL's console.
* @param commandLine The command line options.
*/
private Console createConsole(CommandLine commandLine) {
// console settings
boolean useAnsi = !commandLine.hasOption("na");
SettingsBuilder settings = new SettingsBuilder().enableAlias(true).enableMan(true).ansi(useAnsi).parseOperators(false).inputStream(PausableInput.INSTANCE);
if (commandLine.hasOption("irc")) {
settings = settings.inputrc(new File(commandLine.getOptionValue("irc")));
}
return new Console(settings.create());
}
Aggregations