SessionRecording
ConsoleMonster.Sessions
Reads asciicast v2 sessions and replays their VT output through ConsoleMonster's cell renderer.
Inheritance
- object
- SessionRecording
Usage
Explore 1 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 1
- Method SessionRecording.Read
Constructors
public SessionRecording() #Methods
public string Export(ExportFormat format, RecordingExportOptions? options = null) #Exports an HTML player, animated SVG, v2 asciicast, or scrollback as text or fenced Markdown.
Parameters
- format ConsoleMonster.Export.ExportFormat
- options ConsoleMonster.Export.RecordingExportOptions? = null
Returns
stringpublic string ExportFinalSvg(ExportOptions? options = null) #Exports a static final-frame SVG with the same theme and cell geometry as the player.
Parameters
- options ConsoleMonster.Export.ExportOptions? = null
Returns
stringpublic string ExportPlayerData(RecordingExportOptions? options = null) #Exports the existing native player's data format, including chapter markers.
Parameters
- options ConsoleMonster.Export.RecordingExportOptions? = null
Returns
stringpublic CellBuffer FinalFrame() #Reconstructs the last visible frame, including cursor movement, colour and resizes.
Returns
CellBufferpublic static SessionRecording Read(string path) #Reads a local cast. No companion file or remote resource is needed for playback.
Parameters
- path string
Returns
SessionRecordingpublic static SessionRecording Read(TextReader reader) #Reads a v2 cast, rejecting invalid headers, dimensions and non-monotonic event times.
Parameters
- reader System.IO.TextReader
Returns
SessionRecordingpublic CellBuffer Transcript() #Reconstructs print-once terminal scrollback and the final main screen.
Returns
CellBufferInherited Methods
Properties
public string Mode { get; private set; } #Capture mode stated in the file, or external for third-party casts.