Documentation
¶
Overview ¶
Package sgr is a minimalist package for setting ANSI color terminal escape sequences. It implements 8 colors and several styles of the Select Graphic Rendition SGR.
Index ¶
Constants ¶
View Source
const Escape = "\x1b["
Escape is the leading control sequence for SGR commands.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color int
Color is base terminal color.
Base values for ANSI terminal colors. Use the `FG` and `BG` methods to obtain a valid Param.
type Wrapped ¶
type Wrapped struct { Text string // Text is the original text, not the colored value. // contains filtered or unexported fields }
Wrapped represents SGR wrapped text.
Click to show internal directories.
Click to hide internal directories.