pub fn terminal_debug_snapshot(
id: impl Into<String>,
title: impl Into<String>,
state: &TerminalState,
config: TerminalSnapshotConfig,
) -> TerminalDebugSnapshotExpand description
Captures terminal state with config and adds deterministic cell identities.
ยงExamples
use ailloli_ui_devtools_core::terminal_debug_snapshot;
use ailloli_ui_terminal_core::{TerminalSnapshotConfig, TerminalState};
fn capture(state: &TerminalState, config: TerminalSnapshotConfig) {
let snapshot = terminal_debug_snapshot("shell-1", "Shell", state, config);
assert_eq!(snapshot.id, "shell-1");
}