useTerminal
Creates a read-only xterm terminal instance and attaches it to a container element.
Import
Signature
Parameters
UseTerminalOptions
Return Value
TerminalInstance
Example
Behavior
- The terminal is read-only — keyboard input is disabled.
- The cursor is hidden.
- Scrollback is disabled.
- The terminal automatically fits its container using the FitAddon.
- CSS overrides ensure the terminal fills the container element.