Terminal
Terminal - A Jetpack Compose terminal screen component.
This component:
Renders terminal output using Canvas
Handles terminal resize based on available space
Displays cursor
Supports colors, bold, italic, underline, etc.
Parameters
The terminal emulator containing terminal state
Modifier for the composable
Typeface for terminal text (default: Typeface.MONOSPACE)
Initial font size for terminal text (can be changed with pinch-to-zoom)
Minimum font size for pinch-to-zoom
Maximum font size for pinch-to-zoom
Default background color
Default foreground color
Enable keyboard input handling (default: false for display-only mode). When false, no keyboard input (hardware or soft) is accepted.
Whether to show the soft keyboard/IME (default: true when keyboardEnabled=true). Only applies when keyboardEnabled=true. Hardware keyboard always works when keyboardEnabled=true.
Focus requester for keyboard input (if enabled)
Callback for a simple tap event on the terminal (when no selection is active)
Callback invoked when IME visibility changes (true = shown, false = hidden)
Force terminal to specific dimensions (rows, cols). When set, font size is calculated to fit.
Optional callback providing access to the SelectionController for controlling selection mode
Callback when user taps on an OSC8 hyperlink. Receives the URL as parameter.
Background color for selected text (default: 0xFFB3D7FF)
Foreground color for selected text (default: Black)