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
.
Other low level ANSI functions:
ansi_has_any()
,
ansi_hide_cursor()
,
ansi_regex()
,
ansi_strip()