Skip to content

Commit 72f3dc4

Browse files
committed
term: use existing unix implementation on solaris
All other unix platforms use the same implementation in term_unix.go. The existing implementation in term_solaris.go is equivalent, so use the common implementation on solaris as well. Change-Id: Ie4f67fd3508bea54772c4422ff1dcf73ba76d985 Reviewed-on: https://go-review.googlesource.com/c/term/+/307669 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 parent de623e6 commit 72f3dc4

File tree

3 files changed

+12
-113
lines changed

3 files changed

+12
-113
lines changed

term_solaris.go

Lines changed: 0 additions & 111 deletions
This file was deleted.

term_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || zos
6-
// +build aix darwin dragonfly freebsd linux netbsd openbsd zos
5+
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6+
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
77

88
package term
99

term_unix_solaris.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright 2019 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package term
6+
7+
import "golang.org/x/sys/unix"
8+
9+
const ioctlReadTermios = unix.TCGETS
10+
const ioctlWriteTermios = unix.TCSETS

0 commit comments

Comments
 (0)