Package ghidra.pty
Interface PtyFactory
- All Known Implementing Classes:
ConPtyFactory
,GhidraSshPtyFactory
,LinuxPtyFactory
,MacosPtyFactory
public interface PtyFactory
A mechanism for opening pseudo-terminals
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a human-readable description of the factorystatic PtyFactory
local()
Choose a factory of local pty's for the host operating systemdefault Pty
openpty()
default Pty
openpty
(int cols, int rows) Open a new pseudo-terminalopenpty
(short cols, short rows) Open a new pseudo-terminal
-
Field Details
-
DEFAULT_COLS
static final short DEFAULT_COLS- See Also:
-
DEFAULT_ROWS
static final short DEFAULT_ROWS- See Also:
-
-
Method Details
-
local
Choose a factory of local pty's for the host operating system- Returns:
- the factory
-
openpty
Open a new pseudo-terminal- 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
-
openpty
- Returns:
- new new Pty
- Throws:
IOException
- for an I/O error, including cancellation
-
openpty
Open a new pseudo-terminal- 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
String getDescription()Get a human-readable description of the factory- Returns:
- the description
-