diff options
author | Michael Muré <batolettre@gmail.com> | 2019-12-26 21:50:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-26 21:50:48 +0100 |
commit | 8acbc9db40992d7976ed9efa4c368ac0a5a2d4fd (patch) | |
tree | 907ce32d32cbc353092ba103136df4a4ae1a5de5 /vendor/github.com/MichaelMure/go-term-text/Readme.md | |
parent | 3a3a4ffacd288627f84b367e9a735c3b1451c78b (diff) | |
parent | 6fffe24dea63ab61b47cde9df939ab1021fac5ea (diff) | |
download | git-bug-8acbc9db40992d7976ed9efa4c368ac0a5a2d4fd.tar.gz |
Merge pull request #277 from MichaelMure/dependabot/dep/github.com/MichaelMure/go-term-text-0.2.4
build(deps): bump github.com/MichaelMure/go-term-text from 0.2.1 to 0.2.4
Diffstat (limited to 'vendor/github.com/MichaelMure/go-term-text/Readme.md')
-rw-r--r-- | vendor/github.com/MichaelMure/go-term-text/Readme.md | 9 |
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) |