replayable

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 18 Imported by: 0

README

replayable

Package replayable is a Screen that pipes a Stream into a Terminal, intercepting all events so that it can be replayed.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Replayable

type Replayable struct {
	util.Lifetime
	deadlock.RWMutex
	*mux.UpdatePublisher
	// contains filtered or unexported fields
}

func New

func New(
	ctx context.Context,
	params *params.Parameters,
	cmd, stream mux.Stream,
	timeBinds, copyBinds *bind.BindScope,
	options ...detect.Option,
) *Replayable

func (*Replayable) Cmd

func (r *Replayable) Cmd() mux.Stream

TODO(cfoust): 04/07/24 This is a dirty hack specifically for (cmd/path).

func (*Replayable) Commands

func (r *Replayable) Commands() []detect.Command

func (*Replayable) EnterReplay

func (r *Replayable) EnterReplay(options ...replay.Option)

func (*Replayable) Kill

func (r *Replayable) Kill()

func (*Replayable) Output

func (r *Replayable) Output(start, end int) (data []byte, ok bool)

func (*Replayable) Preview

func (r *Replayable) Preview(
	location geom.Vec2,
	highlights []movement.Highlight,
) *tty.State

func (*Replayable) Resize

func (r *Replayable) Resize(size geom.Size) error

func (*Replayable) Screen

func (r *Replayable) Screen() mux.Screen

func (*Replayable) Send

func (r *Replayable) Send(msg mux.Msg)

func (*Replayable) State

func (r *Replayable) State() *tty.State

func (*Replayable) Stream

func (r *Replayable) Stream() mux.Stream

func (*Replayable) UnfilteredState added in v1.0.0

func (r *Replayable) UnfilteredState() *tty.State

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL