Style

Term.Style.apply_styleMethod
apply_style(text)

Apply style to a piece of text.

Extract markup style information and insert the appropriate ANSI codes to style a string.

source