split

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Split

type Split struct {
	*L.Computable
	deadlock.RWMutex
	*mux.UpdatePublisher
	// contains filtered or unexported fields
}

Split renders two screens side by side (or one above the other) at a fixed proportion of its full width or height (respectively.)

func New

func New(
	ctx context.Context,
	screenA, screenB mux.Screen,
	isVertical bool,
) *Split

func (*Split) Apply

func (s *Split) Apply(node L.NodeType) (bool, error)

func (*Split) Kill

func (s *Split) Kill()

func (*Split) Resize

func (s *Split) Resize(size geom.Size) error

func (*Split) Send

func (s *Split) Send(msg mux.Msg)

func (*Split) SetPercent

func (s *Split) SetPercent(percent int) error

func (*Split) State

func (s *Split) State() *tty.State

Jump to

Keyboard shortcuts

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