Skip to content

Commit

Permalink
Merge pull request #10 from zitryss/macos-newline-bugfix
Browse files Browse the repository at this point in the history
Revert "small fix? for a newline bug on mac OS"
  • Loading branch information
schollz authored Dec 18, 2017
2 parents 702bf7c + 09cbd5e commit b2a1bef
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions progressbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"io"
"os"
"runtime"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -116,12 +115,6 @@ func (p *ProgressBar) Show() error {
return err
}

// handle mac os newline
// this breaks your test for some reason
if runtime.GOOS == "darwin" {
fmt.Fprintf(p.w, "\033[%dA", 0)
}

if f, ok := p.w.(*os.File); ok {
f.Sync()
}
Expand Down

0 comments on commit b2a1bef

Please sign in to comment.