Debian Codegraph @

term/term_other.go

raw
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
4 package term
5
6 import (
7 "fmt"
8 "runtime"
9 )
10
11 type state struct{}
12
13 func isTerminal(fd uintptr) bool {
14 return false
15 }
16
17 func makeRaw(fd uintptr) (*State, error) {
18 return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
19 }
20
21 func getState(fd uintptr) (*State, error) {
22 return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
23 }
24
25 func restore(fd uintptr, state *State) error {
26 return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
27 }
28
29 func getSize(fd uintptr) (width, height int, err error) {
30 return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
31 }
32
33 func setState(fd uintptr, state *State) error {
34 return fmt.Errorf("terminal: SetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
35 }
36
37 func readPassword(fd uintptr) ([]byte, error) {
38 return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
39 }