make_style
Return a function with default parameters for colorize()
def make_style(
opts: tuple = (),
**kwargs: dict
) - > function
Return a function with default parameters for colorize()
Parameters
| Name | Type | Description |
|---|---|---|
| opts | tuple = () | A collection of style attributes such as 'bold', 'underline', or 'italic' to be applied to the text |
| **kwargs | dict | Additional keyword arguments such as 'fg' (foreground color) or 'bg' (background color) to configure the colorize function |
Returns
| Type | Description |
|---|---|
function | A lambda function that accepts a string and returns it formatted with the predefined styles and colors |