DebugConsoleScreen(
self,
snapshot: Sequence[SnapshotField],
*,
snapshot_provider: Callable[[ModalScreen[None]| Name | Type | Description |
|---|---|---|
snapshot* | Sequence[SnapshotField] | Ordered |
snapshot_provider | Callable[[], Sequence[SnapshotField]] | None | Default: NoneOptional callable that rebuilds the snapshot from live host state. When set, the header is refreshed on the same tick as the log tail whenever the provider returns a different row list. Omit for a freeze-frame header (e.g. unit tests). |
cleared_upto | int | Default: 0 |
on_clear | Callable[[int], None] | None | Default: None |
click_to_copy | bool | Default: _CLICK_TO_COPY_DEFAULT |
on_click_to_copy_change | Callable[[bool], None] | None | Default: None |
Modal showing a session snapshot and a live tail of recent log records.
Absolute emission index a prior Ctrl+L cleared up to.
The console starts rendering from here so a clear persists across
close/reopen; records emitted after it still appear.
Invoked with the new clear cursor whenever Ctrl+L clears
the view, letting the owner persist it for the next open.
Initial state of the "Click to copy" checkbox, restored from the persisted preference.
Called with the new value whenever the checkbox is toggled, so the host can persist the preference.