/** * Write data to the standard output. * @param data the data to write * @return this object */ public io.vertx.rxjava.ext.shell.term.Tty write(String data) { delegate.write(data); return this; }
/** * Write data to the standard output. * @param data the data to write * @return this object */ public io.vertx.rxjava.ext.shell.term.Tty write(String data) { delegate.write(data); return this; }
@Override public CommandProcess write(String data) { synchronized (ProcessImpl.this) { if (processStatus != ExecStatus.RUNNING) { throw new IllegalStateException("Cannot write to standard output when " + status().name().toLowerCase()); } } processContext.runOnContext(v -> { tty.write(data); }); return this; }