PrintStream stdout = new UncloseablePrintStream(output.out());
PrintStream stderr = new UncloseablePrintStream(output.err());
Shell currentShell = (Shell) uiContext.getProvider();
final TerminalSize terminalSize = currentShell.getConsole().getShell().getSize();
ForgeTerminal terminal = new ForgeTerminal(
new Terminal()
{
@Override
public void close() throws IOException