Enum Class LinuxPtyFactory

java.lang.Object
java.lang.Enum<LinuxPtyFactory>
ghidra.pty.linux.LinuxPtyFactory
All Implemented Interfaces:
PtyFactory, Serializable, Comparable<LinuxPtyFactory>, Constable

public enum LinuxPtyFactory extends Enum<LinuxPtyFactory> implements PtyFactory
  • Enum Constant Details

  • Method Details

    • values

      public static LinuxPtyFactory[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LinuxPtyFactory valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • openpty

      public Pty openpty(short cols, short rows) throws IOException
      Description copied from interface: PtyFactory
      Open a new pseudo-terminal
      Specified by:
      openpty in interface PtyFactory
      Parameters:
      cols - the initial width in characters, or 0 to let the system decide both dimensions
      rows - the initial height in characters, or 0 to let the system decide both dimensions
      Returns:
      new new Pty
      Throws:
      IOException - for an I/O error, including cancellation
    • getDescription

      public String getDescription()
      Description copied from interface: PtyFactory
      Get a human-readable description of the factory
      Specified by:
      getDescription in interface PtyFactory
      Returns:
      the description