Add unicode block character for progress bar on linux and darwin

This commit is contained in:
Harshavardhana
2015-07-05 11:03:58 -07:00
parent 98aec1eb92
commit 609ebb421b
+5 -2
View File
@@ -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: