vttest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromLines

func FromLines(s string) *vt100screen.VT100

FromLines generates a VT100 from content text. Each line must have the same number of runes.

func FromLinesAndFormats

func FromLinesAndFormats(s string, a [][]vt100screen.Format) *vt100screen.VT100

FromLinesAndFormats generates a *VT100 whose state is set according to s (for content) and a (for attributes).

Dimensions are set to the width of s' first line and the height of the number of lines in s.

If a is nil, the default attributes are used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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