openhands.utils.term_color
TermColor Objects
class TermColor(Enum)
Terminal color codes.
colorize
def colorize(text: str, color: TermColor = TermColor.WARNING) -> str
Colorize text with specified color.
Arguments:
text
str - Text to be coloredcolor
TermColor, optional - Color to use. Defaults to TermColor.WARNING
Returns:
str
- Colored text