private boolean loadJLine(Charset cs) { if (!attemptedJLineLoad) { // Check if we can use JLine for better command line handling attemptedJLineLoad = true; console = ShellConsole.getConsole(this, cs); } return console != null; }
private boolean loadJLine(Charset cs) { if (!attemptedJLineLoad) { // Check if we can use JLine for better command line handling attemptedJLineLoad = true; console = ShellConsole.getConsole(this, cs); } return console != null; }
@Deprecated public static InputStream getStream(Scriptable scope) { ShellConsole console = ShellConsole.getConsole(scope, Charset.defaultCharset()); return (console != null ? console.getIn() : null); } }
@Deprecated public static InputStream getStream(Scriptable scope) { ShellConsole console = ShellConsole.getConsole(scope, Charset.defaultCharset()); return (console != null ? console.getIn() : null); } }
public ShellConsole getConsole(Charset cs) { if (!loadJLine(cs)) { console = ShellConsole.getConsole(getIn(), getErr(), cs); } return console; }
public ShellConsole getConsole(Charset cs) { if (!loadJLine(cs)) { console = ShellConsole.getConsole(getIn(), getErr(), cs); } return console; }