Different termios for linux/darwin
This commit is contained in:
parent
333abbf85a
commit
08ac1d0b35
3 changed files with 14 additions and 4 deletions
|
@ -21,10 +21,6 @@ type Termios struct {
|
|||
Ospeed uintptr
|
||||
}
|
||||
|
||||
const (
|
||||
getTermios = syscall.TIOCGETA
|
||||
setTermios = syscall.TIOCSETA
|
||||
)
|
||||
|
||||
const (
|
||||
// Input flags
|
||||
|
|
6
docker/termios_darwin.go
Normal file
6
docker/termios_darwin.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package main
|
||||
|
||||
const (
|
||||
getTermios = syscall.TCIOGETA
|
||||
setTermios = syscall.TCIOSETA
|
||||
)
|
8
docker/termios_linux.go
Normal file
8
docker/termios_linux.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package main
|
||||
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
getTermios = syscall.TCGETS
|
||||
setTermios = syscall.TCSETS
|
||||
)
|
Loading…
Add table
Reference in a new issue