Re-exports§
pub use crate::utils::message_style::MessageStyle;
Functions§
- append
- clear
- clear_
inline_ handle - Remove the inline handle
- clear_
queue - Clear the message queue (history and undisplayed pending).
- clear_
tracker_ block - Clear remembered tracker replace state (tests / session teardown).
- display_
error - Display an error message in the transcript instead of the input field
- display_
immediate - Display a message immediately without enqueueing or adding to transcript
- display_
info - Display an info message in the transcript instead of the input field
- drain_
queued_ messages - Atomically take every queued message FIFO and clear the history queue.
Prefer this over
get_queued_messages+clear_queue: the snapshot pattern races and callers that only use.last()drop all but the newest message. - drain_
queued_ messages_ with_ metadata - Atomically take every queued message with metadata FIFO and clear.
- enqueue
- Enqueue a message and display it immediately (defaults to Output/Pty style)
- enqueue_
message - Enqueue a message with a specific style and display it immediately
- enqueue_
message_ with_ kind - Enqueue a message with a specific kind and display it immediately
- get_
queued_ messages - Get all queued messages as plain text
- get_
queued_ messages_ with_ metadata - Get all queued messages with their metadata
- last_
line - Last non-empty transcript line, if any.
- len
- pending_
queue_ len - Get pending (undisplayed) queue length.
- queue_
len - Get queue length (history length).
- remember_
tracker_ block - Remember the current user-facing tracker transcript block (UI length = line count).
- remember_
tracker_ block_ with_ ui_ len - Remember the current user-facing tracker transcript block.
- replace_
last - replay_
queued_ messages - Replay all queued messages to the current inline handle (useful for recovery)
- set_
inline_ handle - Set the inline handle for immediate message display.
- snapshot
- tail_
matches - tracker_
block_ len - Line count of the remembered tracker transcript block, if any.
- tracker_
block_ len_ if_ at_ tail - Length of the remembered tracker block only if it is still the transcript tail.
- tracker_
block_ matches - Whether
linesmatch the remembered tracker transcript block exactly. - tracker_
ui_ write_ len - UI write length last recorded for the tracker block, if any.
- with_
suppressed