github.com/turingchain2020/turingchain@v1.1.21/common/log/log15/term/terminal_freebsd.go (about) 1 // Copyright Turing Corp. 2018 All Rights Reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package term 6 7 import ( 8 "syscall" 9 ) 10 11 const ioctlReadTermios = syscall.TIOCGETA 12 13 // Termios functions describe a general terminal interface that is 14 // provided to control asynchronous communications ports. 15 // Go 1.2 doesn't include Termios for FreeBSD. This should be added in 1.3 and this could be merged with terminal_darwin. 16 type Termios struct { 17 Iflag uint32 18 Oflag uint32 19 Cflag uint32 20 Lflag uint32 21 Cc [20]uint8 22 Ispeed uint32 23 Ospeed uint32 24 }