Skip to content

Commit

Permalink
Little fixes for piping functionality
Browse files Browse the repository at this point in the history
Removes clear screen and final new line when output is piped to another process
  • Loading branch information
eliukblau committed Feb 27, 2018
1 parent 6dc6af3 commit a39660c
Show file tree
Hide file tree
Showing 117 changed files with 7,232 additions and 2,303 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
___ _____ ____
/ _ \/ _/ |/_/ /____ ______ _ Made with love by Eliuk Blau
/ ___// /_> </ __/ -_) __/ ' \ github.com/eliukblau/pixterm
/_/ /___/_/|_|\__/\__/_/ /_/_/_/ v1.2.2
/_/ /___/_/|_|\__/\__/_/ /_/_/_/ v1.2.3
```

Expand Down
6 changes: 3 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions pixterm.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
)

const (
pxtVersion = "1.2.2"
pxtVersion = "1.2.3"
pxtLogo = `
___ _____ ____
Expand Down Expand Up @@ -198,10 +198,14 @@ func runPixterm() {
}

// draw ANSImage to terminal
ansimage.ClearTerminal()
if isTerminal() {
ansimage.ClearTerminal()
}
pix.SetMaxProcs(runtime.NumCPU()) // maximum number of parallel goroutines!
pix.Draw()
fmt.Println()
if isTerminal() {
fmt.Println()
}
}

func init() {
Expand Down
Loading

0 comments on commit a39660c

Please sign in to comment.