Class Pty

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

public class Pty extends Object implements MutinyDelegate
A pseudo terminal used for controlling a Tty. This interface acts as a pseudo terminal master, slave() returns the assocated slave pseudo 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<Pty> __TYPE_ARG
  • Constructor Details

    • Pty

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

      public Pty(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.shell.term.Pty 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
    • create

      public static Pty create()
      Returns:
    • create

      public static Pty create(String terminalType)
      Parameters:
      terminalType - the terminal type, for instance
      Returns:
      the created pseudo terminal
    • stdoutHandler

      public Pty stdoutHandler(Consumer<String> handler)
      Parameters:
      handler - the standard output
      Returns:
    • write

      public Pty write(String data)
      Parameters:
      data - the data to write
      Returns:
      this current object
    • setSize

      public Pty setSize(int width, int height)
      Parameters:
      width -
      height -
      Returns:
      this current object
    • slave

      public Tty slave()
      Returns:
      the pseudo terminal slave
    • newInstance

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