mirror of
https://github.com/golang/term.git
synced 2026-02-06 18:00:08 +00:00
Use the TCGETS/TCSETS and TIOCGETA/TIOCSETA definitions from x/sys/unix instead of manually declaring them or using the corresponding definitions from syscall. Change-Id: I37c2c8124d251eb47467b4184a7cc39781775f11 Reviewed-on: https://go-review.googlesource.com/51690 Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
10 lines
285 B
Go
10 lines
285 B
Go
// Copyright 2013 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package terminal
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const ioctlReadTermios = unix.TCGETS
|
|
const ioctlWriteTermios = unix.TCSETS
|