ComposeController

Public API interface for controlling compose mode in the terminal.

Compose mode buffers typed text locally and displays it as an overlay at the cursor position. Enter commits the text; Escape cancels.

Properties

Link copied to clipboard

Whether compose mode is currently active.

Link copied to clipboard

The current pending dead character (accent) waiting for a base character. 0 if no dead character is pending.

Functions

Link copied to clipboard
abstract fun getComposedText(): String

Get the currently composed (buffered) text.

Link copied to clipboard
abstract fun startComposeMode()

Start compose mode. Clears any active selection first.

Link copied to clipboard
abstract fun stopComposeMode()

Stop compose mode, discarding any buffered text.

Link copied to clipboard
abstract fun toggleComposeMode()

Toggle compose mode on/off.