From 0541bc3d6346b5484288f2bcc70a6af96d8e837e Mon Sep 17 00:00:00 2001 From: NotZippy Date: Thu, 23 Apr 2015 10:44:28 -0700 Subject: [PATCH] Added support for openbsd Signed-off-by: NotZippy --- term/terminal_notwindows.go | 2 +- term/terminal_openbsd.go | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 term/terminal_openbsd.go diff --git a/term/terminal_notwindows.go b/term/terminal_notwindows.go index c0b201a..87df7d5 100644 --- a/term/terminal_notwindows.go +++ b/term/terminal_notwindows.go @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux,!appengine darwin freebsd +// +build linux,!appengine darwin freebsd openbsd package term diff --git a/term/terminal_openbsd.go b/term/terminal_openbsd.go new file mode 100644 index 0000000..571ece3 --- /dev/null +++ b/term/terminal_openbsd.go @@ -0,0 +1,7 @@ +package term + +import "syscall" + +const ioctlReadTermios = syscall.TIOCGETA + +type Termios syscall.Termios