term.style

term

style(...) -> ansi

Build an ANSI style escape sequence from style names

Accepts style names such as "bold", "italic", "underlined", "dim", "inverted", "reset". Returns the combined ANSI escape sequence, or an empty string if no valid styles are given.