Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ansi256ToHex ¶
Ansi256ToHex converts ANSI 256 color code to hex color.
func Ansi256ToRGB ¶
Ansi256ToRGB converts ANSI 256 color code to RGB values.
Types ¶
type AnsiConverter ¶
type AnsiConverter struct {
// contains filtered or unexported fields
}
AnsiConverter converts ANSI escape sequences to tview color tags.
func NewAnsiConverter ¶
func NewAnsiConverter(enabled bool) *AnsiConverter
NewAnsiConverter creates a new ANSI converter. enabled: if false, returns text unchanged.
func (*AnsiConverter) Convert ¶
func (c *AnsiConverter) Convert(text string) string
Convert translates ANSI escape sequences to tview color tags. Properly handles foreground, background, and bold attributes.
Click to show internal directories.
Click to hide internal directories.