blob: 8b5d1bad000c9c099c2684800638445d9c8c5e07 [file] [log] [blame]
David K. Bainbridgebd6b2882021-08-26 13:31:02 +00001// 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// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!zos,!windows,!solaris,!plan9
6
7package term
8
9import (
10 "fmt"
11 "runtime"
12)
13
14type state struct{}
15
16func isTerminal(fd int) bool {
17 return false
18}
19
20func makeRaw(fd int) (*State, error) {
21 return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
22}
23
24func getState(fd int) (*State, error) {
25 return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
26}
27
28func restore(fd int, state *State) error {
29 return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
30}
31
32func 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
36func readPassword(fd int) ([]byte, error) {
37 return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
38}