Documentation ¶
Index ¶
- type LineBuffer
- func (l *LineBuffer) PopLeft(continuation, toHighlight string, highlightStyle lipgloss.Style) string
- func (l *LineBuffer) SeekToLine(n int)
- func (l *LineBuffer) SeekToWidth(w int)
- func (l LineBuffer) TotalLines() int
- func (l *LineBuffer) WrappedLines(maxLinesEachEnd int, toHighlight string, toHighlightStyle lipgloss.Style) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineBuffer ¶
type LineBuffer struct {
// contains filtered or unexported fields
}
LineBuffer provides functionality to get sequential strings of a specified terminal width, accounting for the ansi escape codes styling the line.
func New ¶
func New(line string, width int) LineBuffer
func (*LineBuffer) PopLeft ¶ added in v0.5.0
func (l *LineBuffer) PopLeft(continuation, toHighlight string, highlightStyle lipgloss.Style) string
PopLeft returns a string of the buffer's width from its current left offset, scrolling the left offset to the right
func (*LineBuffer) SeekToLine ¶ added in v0.5.0
func (l *LineBuffer) SeekToLine(n int)
func (*LineBuffer) SeekToWidth ¶ added in v0.5.0
func (l *LineBuffer) SeekToWidth(w int)
func (LineBuffer) TotalLines ¶ added in v0.5.0
func (l LineBuffer) TotalLines() int
func (*LineBuffer) WrappedLines ¶ added in v0.5.0
func (l *LineBuffer) WrappedLines( maxLinesEachEnd int, toHighlight string, toHighlightStyle lipgloss.Style, ) []string
Click to show internal directories.
Click to hide internal directories.