summaryrefslogtreecommitdiff
path: root/vendor/github.com/acarl005/stripansi/README.md
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-05 18:14:53 +0100
committerGitHub <noreply@github.com>2020-02-05 18:14:53 +0100
commitfc0673f5612368e0d90173bb061f4b257d08b885 (patch)
tree2a7146aa7fd8b18190523eb2211d90c61e97fac8 /vendor/github.com/acarl005/stripansi/README.md
parent107fd64970faa5870a4c23c971f5061e57b99067 (diff)
parentbaec9f3b10faa4f319b92549ea460aba0af91a4d (diff)
downloadpodman-fc0673f5612368e0d90173bb061f4b257d08b885.tar.gz
podman-fc0673f5612368e0d90173bb061f4b257d08b885.tar.bz2
podman-fc0673f5612368e0d90173bb061f4b257d08b885.zip
Merge pull request #5062 from vrothberg/update-image
vendor github.com/containers/image/v5@v5.2.0
Diffstat (limited to 'vendor/github.com/acarl005/stripansi/README.md')
-rw-r--r--vendor/github.com/acarl005/stripansi/README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/github.com/acarl005/stripansi/README.md b/vendor/github.com/acarl005/stripansi/README.md
new file mode 100644
index 000000000..8bdb1f505
--- /dev/null
+++ b/vendor/github.com/acarl005/stripansi/README.md
@@ -0,0 +1,30 @@
+Strip ANSI
+==========
+
+This Go package removes ANSI escape codes from strings.
+
+Ideally, we would prevent these from appearing in any text we want to process.
+However, sometimes this can't be helped, and we need to be able to deal with that noise.
+This will use a regexp to remove those unwanted escape codes.
+
+
+## Install
+
+```sh
+$ go get -u github.com/acarl005/stripansi
+```
+
+## Usage
+
+```go
+import (
+ "fmt"
+ "github.com/acarl005/stripansi"
+)
+
+func main() {
+ msg := "\x1b[38;5;140m foo\x1b[0m bar"
+ cleanMsg := stripansi.Strip(msg)
+ fmt.Println(cleanMsg) // " foo bar"
+}
+```