diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-05 00:37:32 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-05 00:37:32 +0100 |
| commit | 6960aecc25400320adee1b8802a86839326e15b6 (patch) | |
| tree | 334f7ca9491080a5e6f9a9747da77281c4958ba2 /vendor/golang.org/x/term/term_unsupported.go | |
| download | hepi-6960aecc25400320adee1b8802a86839326e15b6.tar.gz | |
Engage!
Diffstat (limited to 'vendor/golang.org/x/term/term_unsupported.go')
| -rw-r--r-- | vendor/golang.org/x/term/term_unsupported.go | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/golang.org/x/term/term_unsupported.go b/vendor/golang.org/x/term/term_unsupported.go new file mode 100644 index 0000000..3c409e5 --- /dev/null +++ b/vendor/golang.org/x/term/term_unsupported.go | |||
| @@ -0,0 +1,38 @@ | |||
| 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 | |||
| 7 | package term | ||
| 8 | |||
| 9 | import ( | ||
| 10 | "fmt" | ||
| 11 | "runtime" | ||
| 12 | ) | ||
| 13 | |||
| 14 | type state struct{} | ||
| 15 | |||
| 16 | func isTerminal(fd int) bool { | ||
| 17 | return false | ||
| 18 | } | ||
| 19 | |||
| 20 | func makeRaw(fd int) (*State, error) { | ||
| 21 | return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) | ||
| 22 | } | ||
| 23 | |||
| 24 | func getState(fd int) (*State, error) { | ||
| 25 | return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) | ||
| 26 | } | ||
| 27 | |||
| 28 | func restore(fd int, state *State) error { | ||
| 29 | return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) | ||
| 30 | } | ||
| 31 | |||
| 32 | func getSize(fd int) (width, height int, err error) { | ||
| 33 | return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) | ||
| 34 | } | ||
| 35 | |||
| 36 | func readPassword(fd int) ([]byte, error) { | ||
| 37 | return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) | ||
| 38 | } | ||
