Terminal Emulator
Terminal emulator interface. This has no dependency on any UI framework so it may be run in a Service on Android. It handles the management of the terminal emulation state.
Properties
Whether plain-text URL auto-detection is enabled.
Whether bold text using low-intensity ANSI colors (0–7) promotes to the corresponding bright palette color (8–15), matching xterm's boldColors behavior.
Policy controlling whether incoming inline image commands are accepted.
Functions
Apply a complete color scheme to the terminal.
Clears the terminal emulator screen.
Permanently dispose this session and release its native, screen, and image state. Closing is synchronous and idempotent, and does not initialize an unused terminal. Stop session I/O and detach its UI before closing. A temporary UI detachment does not end a session. Mutations and content queries throw IllegalStateException after close; scalar configuration and dimensions remain readable.
Dispatch a character to the terminal.
Dispatch a key event to the terminal.
Get the text output of the last completed command.
Extract URLs from terminal output.
Set ANSI palette colors (indices 0-15).
Physical cell dimensions used by image placement; defaults to 8 by 16 pixels.
Set default terminal colors.
Changing policy cancels in-progress and pending image uploads.
Write data to the terminal using ByteBuffer (more efficient for large data).
Write data to the terminal (from PTY/transport).