stripAnsiCodes( ) Query Function

Removes ANSI color codes and movement commands.


Name Type Required Default Description
field string No @rawstring Specifies the field where to remove ANSI escape codes. Default is running against @rawstring
as string No name of output field, default is to replace contents of input field

field is the unnamed parameter.


Remove the ANSI escape codes from the message field.

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

Remove all ANSI escape codes from @rawstring