From 6fffe24dea63ab61b47cde9df939ab1021fac5ea Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 26 Dec 2019 21:49:39 +0100 Subject: dep ensure --- vendor/github.com/MichaelMure/go-term-text/Readme.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'vendor/github.com/MichaelMure/go-term-text/Readme.md') 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) -- cgit