Files
wazero/internal/platform/terminal_unsupported.go
Crypt Keeper 407f3ea3c0 wasi: detect if stdio are char devices instead of assuming (#935)
This uses ioctl syscalls or appropriate alternative, to detect if
stdin/out/err are character devices or not. This caches the result, to
ensure performance is ok at runtime as executing stat can approach
microsecond overhead.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-12-16 16:06:54 +09:00

8 lines
122 B
Go

//go:build !(darwin || linux || freebsd || windows)
package platform
func isTerminal(fd uintptr) bool {
return false
}