aboutsummaryrefslogtreecommitdiffstats
path: root/log/term/terminal_freebsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'log/term/terminal_freebsd.go')
-rw-r--r--log/term/terminal_freebsd.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/log/term/terminal_freebsd.go b/log/term/terminal_freebsd.go
new file mode 100644
index 000000000..cfaceab33
--- /dev/null
+++ b/log/term/terminal_freebsd.go
@@ -0,0 +1,18 @@
+package term
+
+import (
+ "syscall"
+)
+
+const ioctlReadTermios = syscall.TIOCGETA
+
+// Go 1.2 doesn't include Termios for FreeBSD. This should be added in 1.3 and this could be merged with terminal_darwin.
+type Termios struct {
+ Iflag uint32
+ Oflag uint32
+ Cflag uint32
+ Lflag uint32
+ Cc [20]uint8
+ Ispeed uint32
+ Ospeed uint32
+}