/** * Prompt the user a line of text. * @param prompt the displayed prompt * @param lineHandler the line handler called with the line */ public void readline(String prompt, Handler<String> lineHandler) { delegate.readline(prompt, lineHandler); }
/** * Prompt the user a line of text. * @param prompt the displayed prompt * @param lineHandler the line handler called with the line */ public void readline(String prompt, Handler<String> lineHandler) { delegate.readline(prompt, lineHandler); }
/** * Prompt the user a line of text, providing a completion handler to handle user's completion. * @param prompt the displayed prompt * @param lineHandler the line handler called with the line * @param completionHandler the completion handler */ public void readline(String prompt, Handler<String> lineHandler, Handler<io.vertx.rxjava.ext.shell.cli.Completion> completionHandler) { delegate.readline(prompt, lineHandler, new Handler<io.vertx.ext.shell.cli.Completion>() { public void handle(io.vertx.ext.shell.cli.Completion event) { completionHandler.handle(io.vertx.rxjava.ext.shell.cli.Completion.newInstance(event)); } }); }
/** * Prompt the user a line of text, providing a completion handler to handle user's completion. * @param prompt the displayed prompt * @param lineHandler the line handler called with the line * @param completionHandler the completion handler */ public void readline(String prompt, Handler<String> lineHandler, Handler<io.vertx.rxjava.ext.shell.cli.Completion> completionHandler) { delegate.readline(prompt, lineHandler, new Handler<io.vertx.ext.shell.cli.Completion>() { public void handle(io.vertx.ext.shell.cli.Completion event) { completionHandler.handle(io.vertx.rxjava.ext.shell.cli.Completion.newInstance(event)); } }); }
prompt = "% "; term.readline(prompt, line -> {