Refactoring: new packages console, http, Progress is interface.

This commit is contained in:
Andrey Smirnov committed 2014-02-19 13:08:55 +04:00
1 parent bd119dbfed
commit 2d589bd23d
18 files changed
+193 -138

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
// +build !freebsd
package console
import (
"code.google.com/p/go.crypto/ssh/terminal"
"syscall"
)
// RunningOnTerminal checks whether stdout is terminal
func RunningOnTerminal() bool {
return terminal.IsTerminal(syscall.Stdout)
}