Documentation ¶
Overview ¶
Package t provides functionality to transform (change) cells in the console.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundTransform ¶
type BackgroundTransform struct {
// contains filtered or unexported fields
}
BackgroundTransform sets the background color of a cell
func Background ¶
func Background(newBackground concolor.Color) BackgroundTransform
Background creates a new transformer that sets the background color of a cell to the given color
type CellTransform ¶ added in v0.2.0
type CellTransform struct {
// contains filtered or unexported fields
}
CellTransform sets the whole value of a cell
func Cell ¶ added in v0.2.0
func Cell(newValue ramen.Cell) CellTransform
Cell creates a transformer that sets the whole value of the cell
type CharTransform ¶
type CharTransform struct {
// contains filtered or unexported fields
}
CharTransform sets the char value of a cell
func Char ¶
func Char(newValue int) CharTransform
Char creates a transformer that sets the cells char value to the given int
func CharByte ¶
func CharByte(newValue byte) CharTransform
CharByte creates a transformer that sets the cells char value to the given byte
func CharRune ¶
func CharRune(newValue rune) CharTransform
CharRune creates a transformer that sets the cells char value to the given rune
type ForegroundTransform ¶
type ForegroundTransform struct {
// contains filtered or unexported fields
}
ForegroundTransform sets the foreground color of a cell
func Foreground ¶
func Foreground(newBackground concolor.Color) ForegroundTransform
Foreground creates a new transformer that sets the foreground color of a cell to the given color
type Transformer ¶
Transformer is a interface that specifies transformations (changes) that can be applied to cells in a console