aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/MichaelMure/go-term-text/Readme.md
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-12-26 21:49:39 +0100
committerMichael Muré <batolettre@gmail.com>2019-12-26 21:49:39 +0100
commit6fffe24dea63ab61b47cde9df939ab1021fac5ea (patch)
tree907ce32d32cbc353092ba103136df4a4ae1a5de5 /vendor/github.com/MichaelMure/go-term-text/Readme.md
parent2852bb27e509822c26bf92cecf27fd72ef351d6f (diff)
downloadgit-bug-6fffe24dea63ab61b47cde9df939ab1021fac5ea.tar.gz
dep ensure
Diffstat (limited to 'vendor/github.com/MichaelMure/go-term-text/Readme.md')
-rw-r--r--vendor/github.com/MichaelMure/go-term-text/Readme.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/vendor/github.com/MichaelMure/go-term-text/Readme.md b/vendor/github.com/MichaelMure/go-term-text/Readme.md
index 457b4472..25722ee9 100644
--- a/vendor/github.com/MichaelMure/go-term-text/Readme.md
+++ b/vendor/github.com/MichaelMure/go-term-text/Readme.md
@@ -20,6 +20,7 @@ Included algorithms cover:
- trimming
- alignment
- escape sequence extraction and reapplication
+- escape sequence snapshot and simplification
- truncation
## Example
@@ -31,7 +32,7 @@ import (
"fmt"
"strings"
- text "github.com/MichaelMure/go-term-text"
+ "github.com/MichaelMure/go-term-text"
)
func main() {
@@ -41,8 +42,10 @@ func main() {
"various graphic design. 一只 A Quick \x1b[31m敏捷的狐 Fox " +
"狸跳过了\x1b[0mDog一只懒狗。"
- output, n := text.WrapWithPadIndent(input, 60,
- "\x1b[34m<-indent-> \x1b[0m", "\x1b[33m<-pad-> \x1b[0m")
+ output, n := text.Wrap(input, 60,
+ text.WrapIndent("\x1b[34m<-indent-> \x1b[0m"),
+ text.WrapPad("\x1b[33m<-pad-> \x1b[0m"),
+ )
fmt.Printf("output has %d lines\n\n", n)