...
Source file src/pkg/cmd/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package terminal
16
17 import (
18 "fmt"
19 "runtime"
20 )
21
22 type State struct{}
23
24
25 func IsTerminal(fd int) bool {
26 return false
27 }
28
29
30
31
32 func MakeRaw(fd int) (*State, error) {
33 return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
34 }
35
36
37
38 func GetState(fd int) (*State, error) {
39 return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
40 }
41
42
43
44 func Restore(fd int, state *State) error {
45 return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
46 }
47
48
49 func GetSize(fd int) (width, height int, err error) {
50 return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
51 }
52
53
54
55
56 func ReadPassword(fd int) ([]byte, error) {
57 return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
58 }
59
View as plain text