Removes ANSI color codes and movement commands.

ParameterTypeRequiredDefaultDescription
asstringfalse Name of output field, default is to replace contents of input field.
fieldstringtrue@rawstringSpecifies the field where to remove ANSI escape codes. [a]
typestringfalse Type of ANSI codes to remove.

[a] If an argument name is not given, field is the default argument.

Remove the ANSI escape codes from the message field.

logscale
message := "\x1b[93;41mColor"
| stripAnsiCodes(message)
| @display := message

Remove all ANSI escape codes from @rawstring

logscale
stripAnsiCodes()