termcolor

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BgByte

func BgByte(in byte, r, g, b uint8) []byte

BgByte colorizes the background of the input with the terminal color that matches the closest the RGB color.

func BgBytes

func BgBytes(in []byte, r, g, b uint8) []byte

BgBytes colorizes the background of the input with the terminal color that matches the closest the RGB color.

func BgString

func BgString(in string, r, g, b uint8) string

BgString colorizes the background of the input with the terminal color that matches the closest the RGB color.

This is simply a helper for Bytes.

func Bytes

func Bytes(in []byte, fr, fg, fb, br, bg, bb uint8) []byte

Bytes colorizes the input with the terminal color that matches the closest the RGB color.

func FgByte

func FgByte(in byte, r, g, b uint8) []byte

Byte colorizes the input with the terminal color that matches the closest the RGB color.

func FgBytes

func FgBytes(in []byte, r, g, b uint8) []byte

Bytes colorizes the foreground with the terminal color that matches the closest the RGB color.

func FgString

func FgString(in string, r, g, b uint8) string

FgString colorizes the foreground of the input with the terminal color that matches the closest the RGB color.

This is simply a helper for Bytes.

func String

func String(in string, fr, fg, fb, br, bg, bb uint8) string

String colorizes the input with the terminal color that matches the closest the RGB color.

This is simply a helper for Bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL