colorize
Return your text, enclosed in ANSI graphics codes.
def colorize(
text: string = "",
opts: tuple|list = (),
**kwargs: dict
) - > string
Return your text, enclosed in ANSI graphics codes.
Parameters
| Name | Type | Description |
|---|---|---|
| text | string = "" | The string content to be styled with ANSI graphics codes. |
| opts | `tuple | list` = () |
| **kwargs | dict | Keyword arguments supporting 'fg' (foreground color) and 'bg' (background color) using standard color names. |
Returns
| Type | Description |
|---|---|
string | The text wrapped in ANSI escape sequences for styling, or the RESET code if no parameters are provided. |