Documentation
¶
Index ¶
- Constants
- func EnsureDirectory(path string) error
- func GetFilename(dataDir string, path string) (string, error)
- type Event
- type Recorder
- type SessionReader
- type SessionWriter
- type Simulator
- func (s *Simulator) Add(events ...interface{}) *Simulator
- func (s *Simulator) AddTime(delta time.Duration, event interface{}) *Simulator
- func (s *Simulator) Events() []Event
- func (s *Simulator) Resize(size geom.Size) *Simulator
- func (s *Simulator) ResizeTime(delta time.Duration, size geom.Size) *Simulator
- func (s *Simulator) Term(i int, v ...interface{}) *Simulator
- func (s *Simulator) TermTime(delta time.Duration, i int, v ...interface{}) *Simulator
- func (s *Simulator) Write(data []byte) *Simulator
- func (s *Simulator) WriteTime(delta time.Duration, data []byte) *Simulator
Constants ¶
View Source
const (
SESSION_FILE_VERSION = 1
)
Variables ¶
This section is empty.
Functions ¶
func EnsureDirectory ¶ added in v0.1.1
EnsureDirectory creates a directory if it does not exist and checks whether other users can read and write files in it.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func NewRecorder ¶
type SessionReader ¶ added in v0.1.1
func Open ¶ added in v0.1.1
func Open(filename string) (SessionReader, error)
type SessionWriter ¶ added in v0.1.1
func Create ¶ added in v0.1.1
func Create(filename string) (SessionWriter, error)
type Simulator ¶ added in v0.1.5
type Simulator struct {
// contains filtered or unexported fields
}
Simulator is a convenient way of building recorded sessions programmatically, primarily for testing.
func NewSimulator ¶ added in v0.1.5
func NewSimulator() *Simulator
func (*Simulator) ResizeTime ¶ added in v0.1.5
func (*Simulator) Term ¶ added in v0.1.5
Term invokes terminfo's Printf method and adds it to the session.
Click to show internal directories.
Click to hide internal directories.