/** * Set a stream handler on the standard input to read the data. * @param handler the standard input * @return this object */ public io.vertx.rxjava.ext.shell.term.Tty stdinHandler(Handler<String> handler) { delegate.stdinHandler(handler); return this; }
/** * Set a stream handler on the standard input to read the data. * @param handler the standard input * @return this object */ public io.vertx.rxjava.ext.shell.term.Tty stdinHandler(Handler<String> handler) { delegate.stdinHandler(handler); return this; }
@Override public CommandProcess stdinHandler(Handler<String> handler) { if (handler != null) { stdinHandler = data -> context.runOnContext(v -> handler.handle(data)); } else { stdinHandler = null; } if (processForeground && stdinHandler != null) { tty.stdinHandler(stdinHandler); } return this; }
processForeground = false; if (stdinHandler != null) { tty.stdinHandler(null); processForeground = true; if (stdinHandler != null) { tty.stdinHandler(stdinHandler);