Closed hughjonesd closed 4 years ago
One solution: use strwrap_ctl()
from the fansi
package within character_matrix
. They claim it is much faster than the base equivalent! fansi is C-based, so you can't just copy-paste the function; the package is about 265 kB; but it's already imported by tibble
and cli
so probably fairly common.
The problem (I think) is that
strwrap
incharacter_matrix
is not colour-aware.