Files
iasysadmin/internal/term/term_other.go
T
2026-09-27 16:04:02 -06:00

24 lines
623 B
Go

//go:build !linux
package term
import (
"errors"
"io"
"os"
)
// ErrNotTerminal indica que la entrada no es un terminal interactivo.
var ErrNotTerminal = errors.New("input is not an interactive terminal")
// IsTerminal siempre es false fuera de Linux (plataforma no soportada).
func IsTerminal(f *os.File) bool { return false }
// ReadPassword no está disponible fuera de Linux.
func ReadPassword(in *os.File, out io.Writer, prompt string) (string, error) {
return "", ErrNotTerminal
}
// DisableEcho no está disponible fuera de Linux.
func DisableEcho(f *os.File) (func(), error) { return nil, ErrNotTerminal }