formatting_utils
autogen.formatting_utils.colored
colored
Colorize text.
Available text colors: black, red, green, yellow, blue, magenta, cyan, white, light_grey, dark_grey, light_red, light_green, light_yellow, light_blue, light_magenta, light_cyan.
Available text highlights: on_black, on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white, on_light_grey, on_dark_grey, on_light_red, on_light_green, on_light_yellow, on_light_blue, on_light_magenta, on_light_cyan.
Available attributes: bold, dark, underline, blink, reverse, concealed.
Example: colored(‘Hello, World!’, ‘red’, ‘on_black’, [‘bold’, ‘blink’]) colored(‘Hello, World!’, ‘green’)
Parameters:Name | Description |
---|---|
text | Type: object |
color | Type: Color | None Default: None |
on_color | Type: Highlight | None Default: None |
attrs | Type: Iterable[Attribute] | None Default: None |
no_color | Type: bool | None Default: None |
force_color | Type: bool | None Default: None |