mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
terminal.IsTerminal() is not available on FreeBSD until go1.3
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// +build !freebsd
|
||||
|
||||
package utils
|
||||
|
||||
import (
|
||||
"code.google.com/p/go.crypto/ssh/terminal"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func RunningOnTerminal() bool {
|
||||
return terminal.IsTerminal(syscall.Stdout)
|
||||
}
|
||||
Reference in New Issue
Block a user