console
console copied to clipboard
console package for Go
Adds the ability to wait / block on the console and receive notification if the remote tty has been hung up. This makes it easier when using the console with...
### zos: share implementation with unix The zos and "unix" implementations were identical, except for the `NewPTY()` function. This patch extracts that function to non-exported implementations for "zos" and "unix",...
Fixes build with: env GOOS=js GOARCH=wasm go build -trimpath .
Hey there, Frankly good designed library. Specifically I am not aware how `golang` `std` works but if it gets its streams using `GetStdHandle` `GetConsoleMode` will fail if a stream was...
I found that on Windows, if a console is generated from stderr, output sent towards the console will go into stdout ~~with extra warning like `failed to get console mode...
I am running a binary using [exec.Command](https://pkg.go.dev/os/exec#Command) which calls SetRaw which is hanging on `tcset(m.f.Fd(), &rawState)`. When I run my binary in my terminal (not using exec.Command) SetRaw does not...
See #79 ---- Note that this does NOT fully fix #79 because there is one more issue with `master.getCurrent`. For some reason, `TIOCGETA` ioctl returns `ENOTTY`. So, while it no...
macOS Ventura, M1, go 1.20.6, console 1.0.3 A trivial program ```golang package main import "github.com/containerd/console" func main() { _, _, _ = console.NewPty() } ``` Crashes with ``` % go...
Can we get a new release so we can get recent changes into vendored packages? Thanks!
anybody have same issue ?when i try this package in linux ,found it fork/exec /opt/microsoft/powershell/7/pwsh: inappropriate ioctl for device