mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-22 19:34:41 +00:00
16 lines
200 B
Go
16 lines
200 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/mattn/go-isatty"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if isatty.IsTerminal(os.Stdout.Fd()) {
|
|
fmt.Println("Is Terminal")
|
|
} else {
|
|
fmt.Println("Is Not Terminal")
|
|
}
|
|
}
|