/** * Echo some text in the terminal, escaped if necessary.<p/> * @param text the text to echo * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.ext.shell.term.Term echo(String text) { delegate.echo(text); return this; }
/** * Echo some text in the terminal, escaped if necessary.<p/> * @param text the text to echo * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.ext.shell.term.Term echo(String text) { delegate.echo(text); return this; }
public ShellImpl init() { term.interruptHandler(key -> jobController().foregroundJob().interrupt()); term.suspendHandler(key -> { term.echo(Helper.fromCodePoints(new int[]{key, '\n'})); Job job = jobController.foregroundJob(); term.echo(statusLine(job, ExecStatus.STOPPED) + "\n"); job.suspend(); return true; }); term.closeHandler(v -> jobController.close(ar -> closedFuture.complete() ) ); if (welcome != null && welcome.length() > 0) { term.write(welcome); } return this; }