Documentation ¶
Overview ¶
Package cell implements cell options and attributes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color int
Color is the color of a cell.
const ( ColorDefault Color = iota // 8 "system" colors. ColorBlack ColorRed ColorGreen ColorYellow ColorBlue ColorMagenta ColorCyan ColorWhite )
The supported terminal colors.
func ColorNumber ¶ added in v0.4.0
ColorNumber sets a color using its number. Make sure your terminal is set to a terminalapi.ColorMode that supports the target color. The provided value must be in the range 0-255. Larger or smaller values will be reset to the default color.
For reference on these colors see the Xterm number in: https://jonasjacek.github.io/colors/
func ColorRGB24 ¶ added in v0.4.0
ColorRGB24 sets a color using the 24 bit web color scheme. Make sure your terminal is set to the terminalapi.ColorMode256 mode. The provided values (r, g, b) must be in the range 0-255. Larger or smaller values will be reset to the default color.
For reference on these colors see the RGB column in: https://jonasjacek.github.io/colors/
func ColorRGB6 ¶ added in v0.4.0
ColorRGB6 sets a color using the 6x6x6 terminal color. Make sure your terminal is set to the terminalapi.ColorMode256 mode. The provided values (r, g, b) must be in the range 0-5. Larger or smaller values will be reset to the default color.
For reference on these colors see: https://superuser.com/questions/783656/whats-the-deal-with-terminal-colors
type Option ¶
type Option interface { // Set sets the provided option. Set(*Options) }
Option is used to provide options for cells on a 2-D terminal.
type Options ¶
Options stores the provided options.
func NewOptions ¶
NewOptions returns a new Options instance after applying the provided options.