Watch 8 Star 8 Fork 2

ShirDon-廖显东 / goTerminalGoMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
像Cygwin的命令行go工具库 go Cygwin like terminal spread retract

https://gitee.com/shirdonl/goTerminal.git

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

goTerminal

像Cygwin的命令行go工具库 go Cygwin like terminal go terminal for golang

用法

package main

import (
	"fmt"
	"gitee.com/shirdonl/goTerminal"
	"os"
)

func main() {
	if goterminal.IsTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Terminal")
	} else if goterminal.IsCygwinTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Cygwin/MSYS2 Terminal")
	} else {
		fmt.Println("Is Not Terminal")
	}
}

安装

$ go get gitee.com/shirdonl/goTerminal

License

MIT

Go
1
https://gitee.com/shirdonl/goTerminal.git
git@gitee.com:shirdonl/goTerminal.git
shirdonl
goTerminal
goTerminal
master

Help Search