Removes ANSI color codes and movement commands.
Hide omitted argument names for this function
Omitted Argument NamesThe argument name for
field
can be omitted; the following forms of this function are equivalent:logscale SyntaxstripAnsiCodes("value")
and:
logscale SyntaxstripAnsiCodes(field="value")
These examples show basic structure only.
stripAnsiCodes()
Examples
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()