screen

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BreakNewLinesIter added in v0.8.1

func BreakNewLinesIter(rawSegments <-chan *Segment) <-chan []*Segment

BreakNewLinesIter group segments into lines by breaking segments at new lines

func ParseFromReader added in v0.8.1

func ParseFromReader(r io.Reader) <-chan *Segment

Types

type Searchable added in v0.10.0

type Searchable interface {
	GetSearchableLines() []SearchableLine
}

Searchable represents a row that can be searched.

type SearchableLine added in v0.10.0

type SearchableLine interface {
	GetSegments() []*Segment
}

SearchableLine represents a line that contains searchable segments.

type Segment

type Segment struct {
	Text  string
	Style lipgloss.Style
	Lane  uint64
}

func Parse

func Parse(raw []byte) []Segment

func (Segment) String

func (s Segment) String() string

Jump to

Keyboard shortcuts

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