klyn.String.removeSGR
method

    public native removeSGR(compatibility as String = "") as String

Description

Returns the string with ANSI SGR escape sequences removed.

Example: "\u001b[31mError\u001b[0m".removeSGR() -> "Error" "\u001b[31mError\u001b[0m".removeSGR("") -> "Error"

Parameters

Parameter | Description
--- | ---
`compatibility` | Optional ignored argument kept for compatibility.

Returns

A new String without color/style terminal sequences.