StoryReplay
ChartForgeX.Stories
Bounded, resolved terminal events supplied by a capture host or an author.
Inheritance
- object
- StoryReplay
Remarks
Commands are submitted observations rather than simulated keystrokes. ANSI controls are stripped; hosts resolve screen operations into explicit events.
Usage
Explore 14 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 13
- Method StoryReplay.ChangeDirectory
- Method StoryReplay.Clear
- Method StoryReplay.Command
- Method StoryReplay.CompressPauses
- Method StoryReplay.Create
- Method StoryReplay.Explain
- Method StoryReplay.Marker
- Method StoryReplay.OpenTab
- Method StoryReplay.Output
- Method StoryReplay.ReplaceLine
- Method StoryReplay.SelectTab
- Method StoryReplay.Trim
- Property VisualStoryReplaySurface.Replay
Accepted by parameters 1
Methods
public StoryReplay ChangeDirectory(TimeSpan at, string directory) #Changes the active tab's prompt directory.
Parameters
- at System.TimeSpan
- directory string
Returns
StoryReplaypublic StoryReplay Clear(TimeSpan at) #Clears displayed lines in the active tab without discarding recorded transcript events.
Parameters
- at System.TimeSpan
Returns
StoryReplaypublic StoryReplay Command(TimeSpan at, string command) #Adds a submitted command at its recorded timestamp.
Parameters
- at System.TimeSpan
- command string
Returns
StoryReplaypublic StoryReplay CompressPauses(TimeSpan maximumGap) #Returns a detached presentation with every idle gap, including leading and trailing gaps, capped explicitly.
Parameters
- maximumGap System.TimeSpan
Returns
StoryReplaypublic static StoryReplay Create(TimeSpan duration, TerminalDialect dialect = PowerShell, string workingDirectory = ".", string title = "PowerShell", string? customPrompt = null) #Creates a recording with an explicit endpoint and initial session.
Parameters
- duration System.TimeSpan
- dialect ChartForgeX.Terminal.TerminalDialect = PowerShell
- workingDirectory string = "."
- title string = "PowerShell"
- customPrompt string? = null
Returns
StoryReplaypublic StoryReplay Explain(TimeSpan at, string label) #Returns a detached replay with an explanation inserted on the presentation clock, without inventing a recorded timestamp.
Parameters
- at System.TimeSpan
- label string
Returns
StoryReplaypublic StoryReplay Marker(TimeSpan at, string label) #Adds an explanation or chapter marker at a recorded timestamp.
Parameters
- at System.TimeSpan
- label string
Returns
StoryReplaypublic StoryReplay OpenTab(TimeSpan at, string id, string title, TerminalDialect dialect = PowerShell, string workingDirectory = ".", string? customPrompt = null) #Opens and activates a persistent session.
Parameters
- at System.TimeSpan
- id string
- title string
- dialect ChartForgeX.Terminal.TerminalDialect = PowerShell
- workingDirectory string = "."
- customPrompt string? = null
Returns
StoryReplaypublic StoryReplay Output(TimeSpan at, string text, Tone? tone = null) #Adds completed, newline-separated output. Use ReplaceLine for a carriage-return update.
Parameters
- at System.TimeSpan
- text string
- tone ChartForgeX.Tone? = null
Returns
StoryReplaypublic StoryReplay ReplaceLine(TimeSpan at, string text, Tone? tone = null) #Replaces the active tab's last line with resolved progress text.
Parameters
- at System.TimeSpan
- text string
- tone ChartForgeX.Tone? = null
Returns
StoryReplaypublic StoryReplay SelectTab(TimeSpan at, string id) #Activates a previously opened session.
Parameters
- at System.TimeSpan
- id string
Returns
StoryReplaypublic string ToTranscript() #Gets sanitized chronological output, including cleared lines and both timestamps.
Returns
stringExceptions
InvalidOperationException– The expanded transcript exceeds 16 Mi UTF-16 characters.
public StoryReplay Trim(TimeSpan start, TimeSpan end) #Returns a detached presentation interval. Earlier events are retained at zero to reconstruct tab and screen state.
Parameters
- start System.TimeSpan
- end System.TimeSpan
Returns
StoryReplayInherited Methods
Properties
public TimeSpan Duration { get; private set; } #Gets the presentation duration, including recorded idle time.
public TimeSpan OriginalDuration { get; private set; } #Gets the original duration before trimming or pause compression.
public IReadOnlyList<StoryReplayEvent> Events { get; } #Gets immutable events in stable timestamp order.