@@ -0,0 +1,1566 @@
+package io.vertx.example.shell.prompt;%0A%0Aimport io.vertx.core.AbstractVerticle;%0Aimport io.vertx.example.util.Runner;%0Aimport io.vertx.ext.shell.Shell;%0Aimport io.vertx.ext.shell.ShellServer;%0Aimport io.vertx.ext.shell.ShellService;%0Aimport io.vertx.ext.shell.ShellServiceOptions;%0Aimport io.vertx.ext.shell.command.CommandResolver;%0Aimport io.vertx.ext.shell.term.TelnetTermOptions;%0Aimport io.vertx.ext.shell.term.TermServer;%0Aimport io.vertx.ext.shell.term.impl.TelnetTermServer;%0A%0Aimport java.util.concurrent.atomic.AtomicInteger;%0A%0Apublic class PromptCommand  extends AbstractVerticle %7B%0A  // Convenience method so you can run it in your IDE%0A  public static void main(String%5B%5D args) %7B%0A    Runner.runExample(PromptCommand.class);%0A  %7D%0A%0A  @Override%0A  public void start() throws Exception %7B%0A%0A    ShellServer server = ShellServer.create(vertx);%0A    AtomicInteger ai = new AtomicInteger(0);%0A    server.shellHandler(shell -%3E %7B%0A      shell.setPrompt(s -%3E %7B%0A        try %7B%0A          return %22C: %22 + ai.incrementAndGet();%0A        %7D catch (Exception e) %7B%0A          System.err.println(%22Counter%22);%0A          e.printStackTrace();%0A        %7D%0A        return %22NOOP%22;%0A      %7D);%0A    %7D);%0A    TelnetTermOptions tto = new TelnetTermOptions().setPort(3000).setHost(%22localhost%22);%0A    TermServer telnetTermServer = TermServer.createTelnetTermServer(vertx,tto);%0A    server.registerTermServer(telnetTermServer);%0A%0A    server.registerCommandResolver(CommandResolver.baseCommands(vertx));%0A%0A    server.listen(ar -%3E %7B%0A      if (!ar.succeeded()) %7B%0A        ar.cause().printStackTrace();%0A      %7D%0A    %7D);%0A%0A%0A  %7D%0A%7D%0A

Add example on how to set the prompt