Add support for DragonflyBSD and NetBSD.

This merges all the bsd (including darwin) support into terminal_bsd.go

Cross-compiling works for all of them in that they all compile, but I've only
actually tested the binary on dragonflybsd.  I don't see why this wouldn't
work on the others since I don't think they'd compile if they didn't
support TIOCGETA and Termios, but just a heads up.
This commit is contained in:
Curtis Gagliardi
2015-06-26 12:27:29 -07:00
parent 93a1736895
commit 8a5c13cf78
4 changed files with 3 additions and 33 deletions
+9
View File
@@ -0,0 +1,9 @@
// +build darwin freebsd openbsd netbsd dragonfly
package logrus
import "syscall"
const ioctlReadTermios = syscall.TIOCGETA
type Termios syscall.Termios