Documentation ¶
Index ¶
- type Player
- func (p *Player) Acquire()
- func (p *Player) Commands() []detect.Command
- func (p *Player) Events() []sessions.Event
- func (p *Player) Goto(index, offset int)
- func (p *Player) Location() search.Address
- func (p *Player) Preview(viewport, location geom.Vec2, highlights []movement.Highlight) *tty.State
- func (p *Player) Process(event sessions.Event) error
- func (p *Player) Release()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
func FromEvents ¶
func (*Player) Preview ¶
func (p *Player) Preview( viewport, location geom.Vec2, highlights []movement.Highlight, ) *tty.State
Preview captures a preview with the size `viewport` at `location` in the scrollback of the terminal. You may also provide `highlights` that will be passed to the Flow renderer. Returns nil if the player is "in use", which is only used by replay mode to jump back in time.
Click to show internal directories.
Click to hide internal directories.