Registry / utility / kr-pty

kr-pty

JSON →
library1.1.8gogounverified

Package pty is a wrapper for github.com/creack/pty, providing functions for working with Unix terminals.

go get github.com/kr/pty
INSTALL
IMPORT
SIG · KR-PTY
K
kr-pty
utilitygov1.1.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.

pty
github.com/kr/pty

Start a command with a pseudo-terminal

package main import ( "fmt" "os" "os/exec" "github.com/kr/pty" ) func main() { cmd := exec.Command("bash") f, err := pty.Start(cmd) if err != nil { panic(err) } defer f.Close() fmt.Println("Started bash with PTY") }
Debug
Known issues
breakingThis package is deprecated; use github.com/creack/pty directly
fix
Replace import with github.com/creack/pty
affects: >=1.0.0
Upgrade
Version history
1.1.8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
kr-pty — go get kr-pty · libregistry