mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
12 lines
217 B
Go
12 lines
217 B
Go
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)
|
|
}
|