Package ghidra.pty.windows
Enum Class ConPtyFactory
- All Implemented Interfaces:
PtyFactory
,Serializable
,Comparable<ConPtyFactory>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface ghidra.pty.PtyFactory
DEFAULT_COLS, DEFAULT_ROWS
-
Method Summary
Modifier and TypeMethodDescriptionGet a human-readable description of the factoryopenpty
(short cols, short rows) Open a new pseudo-terminalstatic ConPtyFactory
Returns the enum constant of this class with the specified name.static ConPtyFactory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface ghidra.pty.PtyFactory
openpty, openpty
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
openpty
Description copied from interface:PtyFactory
Open a new pseudo-terminal- Specified by:
openpty
in interfacePtyFactory
- Parameters:
cols
- the initial width in characters, or 0 to let the system decide both dimensionsrows
- 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
Description copied from interface:PtyFactory
Get a human-readable description of the factory- Specified by:
getDescription
in interfacePtyFactory
- Returns:
- the description
-