anansitest

package
v0.0.0-...-863c820 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttrsToCtls

func AttrsToCtls(rows [][]ansi.SGRAttr) []string

AttrsToCtls converts rows of ansi SGR attributes into control string lines.

func GridLines

func GridLines(g anansi.Grid, fill rune) (lines []string)

GridLines returns a slice of line strings built from the grid's cell data.

func GridRowData

func GridRowData(g anansi.Grid) (rs [][]rune, as [][]ansi.SGRAttr)

GridRowData the grid's cell data in two slices-of-slices.

func ParseGridLines

func ParseGridLines(lines []string) (g anansi.Grid)

ParseGridLines parses grid data from a list of line strings. Panics if the lines contain any non-SGR ansi escape sequences. Panics if every line after the first isn't the same width as the first.

func RunesToLines

func RunesToLines(rows [][]rune, zero rune) []string

RunesToLines converts row-ed runes into line strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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