text

package
v0.0.0-...-6d4d12d Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package text measures and cuts raw text for terminal displays. Rather that implement the gaummut of virtual terminal commands, the text package recognizes only newline "\n", tab "\t", and space " ", assuming all other characters are printable in a single cell. The text package treats white space as transparent, only writing the text and foreground color layer for each cell that contains opaque text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bounds

func Bounds(str string) image.Rectangle

Bounds measures a bounding box that would hold the given message.

func Write

func Write(dst *display.Display, bounds image.Rectangle, str string, f color.Color)

Write draws a message onto a display in the given bounds and with the given color.

Types

This section is empty.

Jump to

Keyboard shortcuts

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