|
|
@@ -4,8 +4,7 @@
|
|
|
|
|
|
package terminal
|
|
|
|
|
|
-// These constants are declared here, rather than importing
|
|
|
-// them from the syscall package as some syscall packages, even
|
|
|
-// on linux, for example gccgo, do not declare them.
|
|
|
-const ioctlReadTermios = 0x5401 // syscall.TCGETS
|
|
|
-const ioctlWriteTermios = 0x5402 // syscall.TCSETS
|
|
|
+import "golang.org/x/sys/unix"
|
|
|
+
|
|
|
+const ioctlReadTermios = unix.TCGETS
|
|
|
+const ioctlWriteTermios = unix.TCSETS
|