Class Term


  • public class Term
    extends Tty
    The terminal.

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

    • Field Detail

      • __TYPE_ARG

        public static final TypeArg<Term> __TYPE_ARG
    • Constructor Detail

      • Term

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

        public Term​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.shell.term.Term getDelegate()
        Overrides:
        getDelegate 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:
      • 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)