Browse Source

update README.md

Yasuhiro Matsumoto 8 years ago
parent
commit
c54f6b4c82
1 changed files with 8 additions and 2 deletions
  1. 8 2
      README.md

+ 8 - 2
README.md

@@ -16,6 +16,8 @@ import (
 func main() {
 func main() {
 	if isatty.IsTerminal(os.Stdout.Fd()) {
 	if isatty.IsTerminal(os.Stdout.Fd()) {
 		fmt.Println("Is Terminal")
 		fmt.Println("Is Terminal")
+	} else if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
+		fmt.Println("Is Cygwin/MSYS2 Terminal")
 	} else {
 	} else {
 		fmt.Println("Is Not Terminal")
 		fmt.Println("Is Not Terminal")
 	}
 	}
@@ -28,10 +30,14 @@ func main() {
 $ go get github.com/mattn/go-isatty
 $ go get github.com/mattn/go-isatty
 ```
 ```
 
 
-# License
+## License
 
 
 MIT
 MIT
 
 
-# Author
+## Author
 
 
 Yasuhiro Matsumoto (a.k.a mattn)
 Yasuhiro Matsumoto (a.k.a mattn)
+
+## Thanks
+
+* k-takata: base idea for IsCygwinTerminal