public InputStream wrapInIfNeeded(InputStream in) throws IOException { return terminal.wrapInIfNeeded(in); }
@Override public InputStream wrapInIfNeeded(InputStream in) throws IOException { return base.wrapInIfNeeded(in); }
public InputStream wrapInIfNeeded(InputStream in) throws IOException { return terminal.wrapInIfNeeded(in); }
public final void init() throws Exception { this.escapeTimeout = DEFAULT_ESCAPE_TIMEOUT; boolean nonBlockingEnabled = escapeTimeout > 0L && terminal.isSupported() && in != null; /* * If we had a non-blocking thread already going, then shut it down * and start a new one. */ if (this.in != null) { this.in.shutdown(); } final InputStream wrapped = terminal.wrapInIfNeeded(System.in); this.in = new NonBlockingInputStream(wrapped, nonBlockingEnabled); this.reader = new InputStreamReader(this.in); }