Versions in this module Expand all Collapse all v0 v0.4.0 Nov 19, 2026 v0.3.0 Nov 14, 2026 v0.2.0 Nov 1, 2026 Changes in this version + func ByteOffsetForColumn(line string, col int) int + func ByteOffsetForWrappedCell(line string, targetRow, col, width int) int + func DisplayColumnAtOrAfter(line string, col int) int + func HorizontalWindowLine(line string, offset, width int) string + func HorizontalWindowLineWithSelection(line string, offset, width int, selStart, selEnd int, hasSelection bool, ...) string + func HorizontalWindowLines(lines []string, offset, width int) string + func PositionForVisualCell(lines []string, visualRow, col, width int) (row, byteCol int) + func RenderLineWithSelection(line string, selStart, selEnd int, hasSelection bool, ...) string + func SoftWrapLine(line string, width int) []string + func SoftWrapLineWithSelection(line string, width int, selStart, selEnd int, hasSelection bool, ...) []string + func TotalWrappedRows(lines []string, width int) int + func VisibleWrappedLines(lines []string, width, height, offset int) string + func VisualCursorRow(lines []string, row, col, width int) int + func VisualRowsBefore(lines []string, row, width int) int + func WrappedCursorCell(line string, col, width int) (x, y int) + type Area struct + Col int + Height int + Lines []string + Row int + Width int + Wrap bool + func (a Area) CursorCell(s Scroll) (x, y int) + func (a Area) KeepVisible(s Scroll) Scroll + func (a Area) Render(s Scroll, selection func(row int) (start, end int, ok bool), ...) string + type Scroll struct + Offset int + WrapOffset int + XOffset int