diff --git a/Gopkg.lock b/Gopkg.lock index 667443664..5c73f133f 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -269,12 +269,12 @@ version = "v0.0.3" [[projects]] - digest = "1:3c2529252615b209e6cf92c89a77505016f192372d279d28f49513fe7b69367c" + digest = "1:62418b2f2c48eba31082f234f85d7549063df126a6375d259eb7ce2dc2c31cc1" name = "github.com/mesg-foundation/spinner" packages = ["."] pruneopts = "UT" - revision = "5b875a9171af19dbde37e70a8fcbe2ebd7285e05" - version = "1.1" + revision = "2dfb4780f8e2e251e89826f5d21981d5f8671d45" + version = "1.2" [[projects]] branch = "master" diff --git a/vendor/github.com/mesg-foundation/spinner/spinner.go b/vendor/github.com/mesg-foundation/spinner/spinner.go index 14e43a06e..85086f326 100644 --- a/vendor/github.com/mesg-foundation/spinner/spinner.go +++ b/vendor/github.com/mesg-foundation/spinner/spinner.go @@ -14,6 +14,7 @@ package spinner import ( + "encoding/hex" "errors" "fmt" "io" @@ -21,7 +22,6 @@ import ( "sync" "time" "unicode/utf8" - "encoding/hex" "github.com/fatih/color" ) @@ -304,6 +304,7 @@ func (s *Spinner) erase() { fmt.Fprintf(s.Writer, c) } } + fmt.Fprintf(s.Writer, "\033[K") // for OS X Terminal s.lastOutput = "" }