Debian Codegraph @

tty/tty_wasm.go

raw symbols SCIP
1 //go:build wasm || js
2 // +build wasm js
3
4 package tty
5
6 import "errors"
7
8 // NewDevTty obtains a default tty from the console or TTY (e.g. /dev/tty) for the process.
9 func NewDevTty() (Tty, error) {
10 return nil, errors.New("No tty device on wasm")
11 }
12
13 // NewDevTtyFromDev obtains a tty from the given device path. Not supported on Windows.
14 func NewDevTtyFromDev(dev string) (Tty, error) {
15 return nil, errors.New("No tty device on wasm")
16 }
17
18 // NewStdIoTty obtains a tty from stdin and stdout.
19 func NewStdIoTty() (Tty, error) {
20 return nil, errors.New("No tty device on wasm")
21 }