term_other.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !zos && !windows && !solaris && !plan9
  2. // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!zos,!windows,!solaris,!plan9
  3. package term
  4. import (
  5. "fmt"
  6. "runtime"
  7. )
  8. type state struct{}
  9. func isTerminal(fd uintptr) bool {
  10. return false
  11. }
  12. func makeRaw(fd uintptr) (*State, error) {
  13. return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  14. }
  15. func getState(fd uintptr) (*State, error) {
  16. return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  17. }
  18. func restore(fd uintptr, state *State) error {
  19. return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  20. }
  21. func getSize(fd uintptr) (width, height int, err error) {
  22. return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  23. }
  24. func setState(fd uintptr, state *State) error {
  25. return fmt.Errorf("terminal: SetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  26. }
  27. func readPassword(fd uintptr) ([]byte, error) {
  28. return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  29. }