Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

term_unsupported.go 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2019 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !zos && !windows && !solaris && !plan9
  5. package term
  6. import (
  7. "fmt"
  8. "runtime"
  9. )
  10. type state struct{}
  11. func isTerminal(fd int) bool {
  12. return false
  13. }
  14. func makeRaw(fd int) (*State, error) {
  15. return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  16. }
  17. func getState(fd int) (*State, error) {
  18. return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  19. }
  20. func restore(fd int, state *State) error {
  21. return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  22. }
  23. func getSize(fd int) (width, height int, err error) {
  24. return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  25. }
  26. func readPassword(fd int) ([]byte, error) {
  27. return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
  28. }