Registry / utility / mattn-go-tty

mattn-go-tty

JSON →
library0.0.8gogounverified

go-tty provides a simple interface for reading from and writing to a terminal in Go.

go get github.com/mattn/go-tty
INSTALL
IMPORT
SIG · MATTN-GO-TTY
M
mattn-go-tty
utilitygov0.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tty
github.com/mattn/go-tty

Open a terminal and read runes.

package main import ( "fmt" "github.com/mattn/go-tty" ) func main() { t, err := tty.Open() if err != nil { panic(err) } defer t.Close() for { r, err := t.ReadRune() if err != nil { break } fmt.Printf("%c", r) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mattn-go-tty — go get mattn-go-tty · libregistry