ansiOptimizeControlFunctions method

String ansiOptimizeControlFunctions({
  1. bool close = true,
})

Returns the string with the escape codes folded together.

close is whether to end the string in the state it began in and outside every hyperlink: a string that opens a link and never closes it comes back closed, so that what is printed after it is not clickable.

See Parser.optimize.

Implementation

String ansiOptimizeControlFunctions({bool close = true}) =>
    Parser(this).optimize(close: close);