testcanvas

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testcanvas provides helpers for tests that use the canvas package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustApply

func MustApply(c *canvas.Canvas, t *faketerm.Terminal)

MustApply applies the canvas on the terminal or panics.

func MustNew

func MustNew(area image.Rectangle) *canvas.Canvas

MustNew returns a new canvas or panics.

func MustSetCell

func MustSetCell(c *canvas.Canvas, p image.Point, r rune, opts ...cell.Option) int

MustSetCell sets the cell value or panics. Returns the number of cells the rune occupies, wide runes can occupy multiple cells when printed on the terminal. See http://www.unicode.org/reports/tr11/.

Types

This section is empty.

Jump to

Keyboard shortcuts

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