From f887077f259df5f3a64014e356646b0ad12a3c64 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 14 Oct 2019 22:43:42 +0200 Subject: [PATCH] term: fix build on js/wasm and nacl Change-Id: I8ff21952a72f3f5838c9959f00d9f4c8b4b45d2d Reviewed-on: https://go-review.googlesource.com/c/term/+/201117 Reviewed-by: Brad Fitzpatrick --- term_unsupported.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 term_unsupported.go diff --git a/term_unsupported.go b/term_unsupported.go new file mode 100644 index 0000000..76ca931 --- /dev/null +++ b/term_unsupported.go @@ -0,0 +1,11 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build js,wasm nacl + +package term + +func isTerminal(fd int) bool { + return false +}