ansi::color
color(input: String, colorName: String)
Parameter | Type | Description |
---|---|---|
input | String | Text that should be colored |
colorName | String | Color name. One of: default, black, red, green, yellow, blue, magenta, cyan, white, brightBlack, brightRed, etc. |
Returns
(String) A string containing ansi escape codes that result in colored text in the terminal.