Browse Source

Merge branch 'master' of git://github.com/mattn/go-isatty

Yasuhiro Matsumoto 9 years ago
parent
commit
9763a58520
2 changed files with 2 additions and 2 deletions
  1. 1 1
      _example/example.go
  2. 1 1
      isatty_bsd.go

+ 1 - 1
_example/example.go

@@ -7,7 +7,7 @@ import (
 )
 
 func main() {
-	if isatty.IsTerminal(int(os.Stdout.Fd())) {
+	if isatty.IsTerminal(os.Stdout.Fd()) {
 		fmt.Println("Is Terminal")
 	} else {
 		fmt.Println("Is Not Terminal")

+ 1 - 1
isatty_bsd.go

@@ -1,4 +1,4 @@
-// +build darwin freebsd openbsd netbsd
+// +build darwin freebsd openbsd netbsd dragonfly
 // +build !appengine
 
 package isatty