private bool LoadJLine(Encoding cs) { if (!attemptedJLineLoad) { // Check if we can use JLine for better command line handling attemptedJLineLoad = true; console = ShellConsole.GetConsole(this, cs); } return console != null; }
public virtual ShellConsole GetConsole(Encoding cs) { if (!LoadJLine(cs)) { console = ShellConsole.GetConsole(GetIn(), GetErr(), cs); } return console; }
public ConsoleInputStream(ShellConsole console, Encoding cs) { this.console = console; this.cs = cs; }