screen

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TransparentBg = lipgloss.Color("#010203")
View Source
const TransparentFg = lipgloss.Color("#010203")

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

func Stacked

func Stacked(view1, view2 string, x, y int) string

Types

type Segment

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

func Parse

func Parse(raw []byte) []Segment

func (Segment) FindSubstringRange added in v0.9.0

func (s Segment) FindSubstringRange(substr string) (int, int)

func (Segment) String

func (s Segment) String() string

func (Segment) StyleEqual

func (s Segment) StyleEqual(other Segment) bool

Jump to

Keyboard shortcuts

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