forked from gliderlabs/ssh
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpty_other.go
More file actions
44 lines (32 loc) · 805 Bytes
/
pty_other.go
File metadata and controls
44 lines (32 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//go:build !linux && !darwin && !freebsd && !dragonfly && !netbsd && !openbsd && !solaris && !windows
// +build !linux,!darwin,!freebsd,!dragonfly,!netbsd,!openbsd,!solaris,!windows
package ssh
import (
"os/exec"
"golang.org/x/crypto/ssh"
)
type impl struct{}
func (i *impl) IsZero() bool {
return true
}
func (i *impl) Name() string {
return ""
}
func (i *impl) Read(p []byte) (n int, err error) {
return 0, ErrUnsupported
}
func (i *impl) Write(p []byte) (n int, err error) {
return 0, ErrUnsupported
}
func (i *impl) Resize(w int, h int) error {
return ErrUnsupported
}
func (i *impl) Close() error {
return nil
}
func (*impl) start(*exec.Cmd) error {
return ErrUnsupported
}
func newPty(Context, string, Window, ssh.TerminalModes) (impl, error) {
return impl{}, ErrUnsupported
}