W3cubDocs

/Nushell

ansi strip for platform

Strip ANSI escape sequences from a string.

Signature

> ansi strip {flags} ...rest

Parameters

  • ...rest: for a data structure input, remove ANSI sequences from strings at the given cell paths

Input/output types:

input output
list<string> list<string>
record record
string string
table table

Examples

Strip ANSI escape sequences from a string

>$'(ansi green)(ansi cursor_on)hello'|ansi strip
hello

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/ansi_strip.html