From 609ebb421b91f2f9e5803fb40204fa72d0d9d6a7 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 5 Jul 2015 11:03:58 -0700 Subject: [PATCH] Add unicode block character for progress bar on linux and darwin --- pb.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pb.go b/pb.go index 5fa1940c..0c1841b4 100644 --- a/pb.go +++ b/pb.go @@ -155,8 +155,11 @@ func newCpBar() barSend { console.Bar("\r" + s) } cursorCh := cursorAnimate() - // Feels like wget - bar.Format("[=> ]") + if runtime.GOOS == "windows" { + bar.Format("[=> ]") + } else { + bar.Format("[▆ ]") + } for msg := range cmdCh { switch msg.Cmd { case pbBarCmdSetCaption: