Different termios for linux/darwin

This commit is contained in:
shin- 2013-01-28 17:06:46 -08:00
parent 333abbf85a
commit 08ac1d0b35
3 changed files with 14 additions and 4 deletions

View File

@ -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
View File

@ -0,0 +1,6 @@
package main
const (
getTermios = syscall.TCIOGETA
setTermios = syscall.TCIOSETA
)

8
docker/termios_linux.go Normal file
View File

@ -0,0 +1,8 @@
package main
import "syscall"
const (
getTermios = syscall.TCGETS
setTermios = syscall.TCSETS
)