Fix build
diff --git a/tty_plan9.go b/tty_plan9.go
index 8aed668..7828953 100644
--- a/tty_plan9.go
+++ b/tty_plan9.go
@@ -2,9 +2,9 @@
import (
"bufio"
+ "errors"
"os"
"syscall"
- "errors"
)
type TTY struct {
@@ -13,7 +13,7 @@
out *os.File
}
-func open() (*TTY, error) {
+func open(path string) (*TTY, error) {
tty := new(TTY)
in, err := os.Open("/dev/cons")
diff --git a/tty_windows.go b/tty_windows.go
index 22b538c..73ba6c7 100644
--- a/tty_windows.go
+++ b/tty_windows.go
@@ -142,7 +142,7 @@
return nil
}
-func open() (*TTY, error) {
+func open(path string) (*TTY, error) {
tty := new(TTY)
if false && isatty.IsTerminal(os.Stdin.Fd()) {
tty.in = os.Stdin