goterm:具有PTY支持和颜色的Go终端库

时间:2021-02-06 00:58:04
【文件属性】:
文件名称:goterm:具有PTY支持和颜色的Go终端库
文件大小:22KB
文件格式:ZIP
更新时间:2021-02-06 00:58:04
golang terminal pty terminal-colors TerminalGo 术语包实现PTY创建和termios获取/设置属性。 它还包含一些方便的功能,用于颜色,SSH <> termios翻译,readCh,读取密码等。 PTY和termios部件特定于Linux。 获取代码 go get github.com/google/goterm/term package main import ( "fmt" "github.com/google/goterm/term" ) func main() { fmt.Println(term.Blue("Hello blue world")) }
【文件预览】:
goterm-master
----term()
--------termios.go(13KB)
--------ssh_test.go(1KB)
--------color_test.go(11KB)
--------color.go(16KB)
--------termios_test.go(11KB)
--------ssh.go(6KB)
----CONTRIBUTING(1KB)
----AUTHORS(173B)
----.circleci()
--------config.yml(640B)
----example()
--------example.go(3KB)
----LICENSE(1KB)
----README.md(543B)

网友评论