@@ -21,10 +21,6 @@ type Termios struct {
Ospeed uintptr
}
-const (
- getTermios = syscall.TIOCGETA
- setTermios = syscall.TIOCSETA
-)
const (
// Input flags
@@ -0,0 +1,6 @@
+package main
+
+const (
+ getTermios = syscall.TCIOGETA
+ setTermios = syscall.TCIOSETA
+)
@@ -0,0 +1,8 @@
+import "syscall"
+ getTermios = syscall.TCGETS
+ setTermios = syscall.TCSETS