Class Term

java.lang.Object
io.vertx.mutiny.ext.shell.term.Tty
io.vertx.mutiny.ext.shell.term.Term
All Implemented Interfaces:
MutinyDelegate

public class Term extends Tty implements MutinyDelegate
The terminal.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final TypeArg<Term> __TYPE_ARG
  • Constructor Details

    • Term

      public Term(io.vertx.ext.shell.term.Term delegate)
    • Term

      public Term(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.shell.term.Term getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Overrides:
      getDelegate in class Tty
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Tty
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Tty
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Tty
    • resizehandler

      public Term resizehandler(Runnable handler)
      Overrides:
      resizehandler in class Tty
      Parameters:
      handler - the resize handler
      Returns:
    • stdinHandler

      public Term stdinHandler(Consumer<String> handler)
      Overrides:
      stdinHandler in class Tty
      Parameters:
      handler - the standard input
      Returns:
    • write

      public Term write(String data)
      Overrides:
      write in class Tty
      Parameters:
      data - the data to write
      Returns:
      this object
    • lastAccessedTime

      public long lastAccessedTime()
      Returns:
      the last time this term received input
    • echo

      public Term echo(String text)
      Parameters:
      text - the text to echo
      Returns:
      a reference to this, so the API can be used fluently
    • setSession

      public Term setSession(Session session)
      Parameters:
      session - the session to set
      Returns:
      a reference to this, so the API can be used fluently
    • interruptHandler

      public Term interruptHandler(SignalHandler handler)
      Parameters:
      handler - the interrupt handler
      Returns:
      a reference to this, so the API can be used fluently
    • suspendHandler

      public Term suspendHandler(SignalHandler handler)
      Parameters:
      handler - the suspend handler
      Returns:
      a reference to this, so the API can be used fluently
    • readline

      public void readline(String prompt, Consumer<String> lineHandler)
      Parameters:
      prompt - the displayed prompt
      lineHandler - the line handler called with the line
    • readline

      public void readline(String prompt, io.vertx.core.Handler<String> lineHandler, Consumer<Completion> completionHandler)
      Parameters:
      prompt - the displayed prompt
      lineHandler - the line handler called with the line
      completionHandler - the completion handler
    • closeHandler

      public Term closeHandler(Runnable handler)
      Parameters:
      handler - the handler
      Returns:
    • close

      public void close()
    • newInstance

      public static Term newInstance(io.vertx.ext.shell.term.Term arg)