Documentation
¶
Overview ¶
Package recorder implements asciinema v2 terminal recording.
It wraps os.Stdout with a tee writer so that all terminal output is captured into a .cast file in asciicast v2 format. SIGWINCH events are captured and written as resize events.
Usage:
err := recorder.DefaultRecorder.Start("/path/to/output.cast")
defer recorder.DefaultRecorder.Stop()
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRecorder = &Recorder{}
DefaultRecorder is the package-level recorder instance used by /record.
Functions ¶
func RecordingPath ¶
RecordingPath returns the default path for a new recording using the current time as a stable, unique suffix.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder captures terminal output into an asciicast v2 file.
func (*Recorder) FilePath ¶
FilePath returns the path of the current recording file, or empty string.
func (*Recorder) IsRecording ¶
IsRecording returns true if a recording is in progress.
Click to show internal directories.
Click to hide internal directories.