package ui
Import Path
github.com/carapace-sh/carapace/third_party/github.com/elves/elvish/pkg/ui (on go.dev)
Dependency Relation
imports 3 packages, and imported by 4 packages
Package-Level Type Names (total 3)
Color represents a color.
( Color) String() string
Color : expvar.Var
Color : fmt.Stringer
func TrueColor(r, g, b uint8) Color
func XTerm256Color(i uint8) Color
func Bg(c Color) Styling
func Fg(c Color) Styling
var Black
var Blue
var BrightBlack
var BrightBlue
var BrightCyan
var BrightGreen
var BrightMagenta
var BrightRed
var BrightWhite
var BrightYellow
var Cyan
var Green
var Magenta
var Red
var White
var Yellow
Style specifies how something (mostly a string) shall be displayed.
Background Color
Blink bool
Bold bool
Dim bool
Foreground Color
Inverse bool
Italic bool
Underlined bool
MergeFromOptions merges all recognized values from a map to the current
Style.
SGR returns SGR sequence for the style.
func ApplyStyling(s Style, ts ...Styling) Style
func StyleFromSGR(s string) Style
func github.com/carapace-sh/carapace/pkg/style.Parse(s string) Style
func ApplyStyling(s Style, ts ...Styling) Style
Styling specifies how to change a Style. It can also be applied to a Segment
or Text.
func Bg(c Color) Styling
func Fg(c Color) Styling
func ParseStyling(s string) Styling
func StylingFromSGR(s string) Styling
func Stylings(ts ...Styling) Styling
func ApplyStyling(s Style, ts ...Styling) Style
func Stylings(ts ...Styling) Styling
var BgBlack
var BgBlue
var BgBrightBlack
var BgBrightBlue
var BgBrightCyan
var BgBrightGreen
var BgBrightMagenta
var BgBrightRed
var BgBrightWhite
var BgBrightYellow
var BgCyan
var BgDefault
var BgGreen
var BgMagenta
var BgRed
var BgWhite
var BgYellow
var Blink
var Bold
var Dim
var FgBlack
var FgBlue
var FgBrightBlack
var FgBrightBlue
var FgBrightCyan
var FgBrightGreen
var FgBrightMagenta
var FgBrightRed
var FgBrightWhite
var FgBrightYellow
var FgCyan
var FgDefault
var FgGreen
var FgMagenta
var FgRed
var FgWhite
var FgYellow
var Inverse
var Italic
var NoBlink
var NoBold
var NoDim
var NoInverse
var NoItalic
var NoUnderlined
var Reset
var ToggleBlink
var ToggleBold
var ToggleDim
var ToggleInverse
var ToggleItalic
var ToggleUnderlined
var Underlined
Package-Level Functions (total 9)
ApplyStyling returns a new Style with the given Styling's applied.
Bg returns a Styling that sets the background color.
Fg returns a Styling that sets the foreground color.
ParseStyling parses a text representation of Styling, which are kebab
case counterparts to the names of the builtin Styling's. For example,
ToggleInverse is expressed as "toggle-inverse".
Multiple stylings can be joined by spaces, which is equivalent to calling
Stylings.
If the given string is invalid, ParseStyling returns nil.
StyleFromSGR builds a Style from an SGR sequence.
StylingFromSGR builds a Style from an SGR sequence.
Stylings joins several transformers into one.
TrueColor returns a 24-bit true color.
XTerm256Color returns a color from the xterm 256-color palette.
Package-Level Variables (total 69)
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Builtin ANSI colors.
Common stylings.
Builtin ANSI colors.
Common stylings.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Builtin ANSI colors.
Common stylings.
Common stylings.
Builtin ANSI colors.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Builtin ANSI colors.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Builtin ANSI colors.
Builtin ANSI colors.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |