powered by
This function sets the class of its argument, activating ANSI-string-specific methods such as for printing.
ansi_string(x)
A cli_ansi_string object, a subclass of character, with the same length and contents as x.
cli_ansi_string
character
x
A character vector or something that can be coerced into one.
Other low level ANSI functions: ansi_has_any(), ansi_hide_cursor(), ansi_regex(), ansi_strip()
ansi_has_any()
ansi_hide_cursor()
ansi_regex()
ansi_strip()