ansi

package
v0.0.0-...-ad3cfc1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ansi converts a given area into a stream of ansi sequences to be dump into a terminal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sequence

func Sequence(a *area.Area) []byte

Sequence returns the ansi sequences to represent the area It will ignore any Char in the area that is nil

Types

type Char

type Char interface {
	Content() string
	Background() col.Color
	Foreground() col.Color
	Bold() bool
	Faint() bool
	Italic() bool
	Underline() bool
	Blink() bool
	Inverse() bool
	Invisible() bool
	Crossed() bool
	Double() bool
}

Char represents the properties a char in an Area should have to be able to be represented in a terminal.

Jump to

Keyboard shortcuts

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