Skip to Content
WidgetsSessionTranscript

SessionTranscript

SessionTranscript is the highest-level transcript container in Ansiq’s widgets.

SessionTranscript
SessionTranscript terminal preview
Terminal preview of SessionTranscript

Smallest example

let transcript = SessionTranscript::new() .session(self.session.clone()) .intro(Paragraph::new("Start typing").build()) .empty(Text::new("No output yet").build()) .build();

Use SessionTranscript when

  • a screen has intro, live transcript, and empty states
  • transcript state already lives in TranscriptSession

Key builder methods

  • .session(...)
  • .entries(...)
  • .intro(...)
  • .active(...)
  • .empty(...)
  • .session_started(...)

When to use TranscriptView instead

Use TranscriptView instead of SessionTranscript when:

  • you already have the full list of structured entries
  • you do not need intro-state or empty-state orchestration
  • the surrounding shell logic lives elsewhere
Last updated on