R/ansiex.R
ansi_simplify.Rd
It creates an equivalent, but possibly shorter ANSI styled string, by removing duplicate and empty tags.
ansi_simplify(x, csi = c("keep", "drop"))
Input string
What to do with non-SGR ANSI sequences, either "keep", or "drop" them.
"keep"
"drop"
Simplified cli_ansi_string vector.
cli_ansi_string