TerminalShellCommandLineSnapshot
data class TerminalShellCommandLineSnapshot(val commandText: String, val cursorOffset: Int, val cursorColumn: Int, val cursorRow: Int)
Bounded snapshot of the shell command line currently known to the session.
The snapshot is derived from OSC 133 prompt markers and the synchronized render-frame state owned by TerminalSession. It represents command text that is safe for host suggestion providers to inspect without scanning persistent history or maintaining their own shadow input buffer.
Properties
Link copied to clipboard
visible command-line text captured from the end of the active prompt.
Link copied to clipboard
zero-based terminal-grid cursor column to use as a popup anchor.
Link copied to clipboard
UTF-16 cursor offset within commandText.