preview

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KEYWORD_TEXT       = janet.Keyword("text")
	KEYWORD_NODE       = janet.Keyword("node")
	KEYWORD_REPLAY     = janet.Keyword("replay")
	KEYWORD_SCROLLBACK = janet.Keyword("scrollback")
)

Functions

func New

func New(
	ctx context.Context,
	tree *tree.Tree,
	client *server.Client,
	args interface{},
) mux.Screen

func NewNode

func NewNode(
	ctx context.Context,
	tree *tree.Tree,
	client *server.Client,
	args NodeType,
) mux.Screen

func NewReplay

func NewReplay(
	ctx context.Context,
	args ReplayType,
) mux.Screen

func NewScrollback

func NewScrollback(
	ctx context.Context,
	tree *tree.Tree,
	args ScrollbackType,
) mux.Screen

func NewStatic

func NewStatic(ctx context.Context, image I.Image) mux.Screen

func NewText

func NewText(ctx context.Context, args TextType) mux.Screen

func Unmarshal

func Unmarshal(input *janet.Value) (result interface{}, err error)

Types

type AttachEvent

type AttachEvent struct {
	// contains filtered or unexported fields
}

type DetachEvent

type DetachEvent struct{}

type Node

type Node struct {
	util.Lifetime
	NodeType
	// contains filtered or unexported fields
}

func (*Node) Init

func (n *Node) Init() taro.Cmd

func (*Node) Update

func (n *Node) Update(msg taro.Msg) (taro.Model, taro.Cmd)

func (*Node) View

func (f *Node) View(out *tty.State)

type NodeType

type NodeType struct {
	Id tree.NodeID
}

type Replay

type Replay struct {
	util.Lifetime
	ReplayType
	// contains filtered or unexported fields
}

func (*Replay) Init

func (r *Replay) Init() tea.Cmd

func (*Replay) Update

func (r *Replay) Update(msg tea.Msg) (taro.Model, tea.Cmd)

func (*Replay) View

func (r *Replay) View(state *tty.State)

type ReplayType

type ReplayType struct {
	Path string
}

type ScrollbackType

type ScrollbackType struct {
	Id         tree.NodeID
	Focus      geom.Vec2
	Highlights []search.Selection
}

type Static

type Static struct {
	// contains filtered or unexported fields
}

func (*Static) Init

func (n *Static) Init() taro.Cmd

func (*Static) Update

func (n *Static) Update(msg taro.Msg) (taro.Model, taro.Cmd)

func (*Static) View

func (f *Static) View(out *tty.State)

type TextType

type TextType struct {
	Text string
}

Jump to

Keyboard shortcuts

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