klyn.String.removeSGR
method
public native removeSGR(compatibility as String = "") as String
DescriptionReturns the string with ANSI SGR escape sequences removed.
Example:
"\u001b[31mError\u001b[0m".removeSGR() -> "Error"
"\u001b[31mError\u001b[0m".removeSGR("") -> "Error"
ReturnsA new String without color/style terminal sequences.