StringRemoveEscapeCodesExtension extension

on

Methods

removeBackground() String

Available on String, provided by the StringRemoveEscapeCodesExtension extension

Removes background colors in the text.
removeCsi() String

Available on String, provided by the StringRemoveEscapeCodesExtension extension

Removes control sequences (CSI) in the text.
removeEscapeCodes() String

Available on String, provided by the StringRemoveEscapeCodesExtension extension

Removes any escape codes in the text.
removeForeground() String

Available on String, provided by the StringRemoveEscapeCodesExtension extension

Removes foreground colors in the text.
removeSgr() String

Available on String, provided by the StringRemoveEscapeCodesExtension extension

Removes SGR (Select Graphic Rendition) codes in the text.