Class Tty

java.lang.Object
io.vertx.mutiny.ext.shell.term.Tty
All Implemented Interfaces:
MutinyDelegate
Direct Known Subclasses:
CommandProcess, Term

public class Tty extends Object implements MutinyDelegate
Provide interactions with the Shell TTY.

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<Tty> __TYPE_ARG
  • Constructor Details

    • Tty

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

      public Tty(Object delegate)
  • Method Details

    • getDelegate

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • type

      public String type()
      Returns:
      the declared tty type, for instance , , etc... it can be null when the tty does not have declared its type.
    • width

      public int width()
      Returns:
      the current width, i.e the number of rows or if unknown
    • height

      public int height()
      Returns:
      the current height, i.e the number of columns or if unknown
    • stdinHandler

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

      public Tty write(String data)
      Parameters:
      data - the data to write
      Returns:
      this object
    • resizehandler

      public Tty resizehandler(Runnable handler)
      Parameters:
      handler - the resize handler
      Returns:
    • newInstance

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