github.com/bir3/gocompiler@v0.3.205/src/xvendor/golang.org/x/term/term_unsupported.go (about) 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 5 //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !zos && !windows && !solaris && !plan9 6 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!zos,!windows,!solaris,!plan9 7 8 package term 9 10 import ( 11 "fmt" 12 "runtime" 13 ) 14 15 type state struct{} 16 17 func isTerminal(fd int) bool { 18 return false 19 } 20 21 func makeRaw(fd int) (*State, error) { 22 return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 23 } 24 25 func getState(fd int) (*State, error) { 26 return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 27 } 28 29 func restore(fd int, state *State) error { 30 return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 31 } 32 33 func getSize(fd int) (width, height int, err error) { 34 return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 35 } 36 37 func readPassword(fd int) ([]byte, error) { 38 return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 39 }