This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fill in the missing ioctlReadTermios/ioctlWriteTermios, and switch to syscall.Syscall as Syscall6 is not available. Probably makes this work on AIX too as a bonus.
- Loading branch information
Jonathan Perkin
committed
Apr 11, 2022
1 parent
459523e
commit 8a89add
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// copied from golang.org/x/term/term_unix_other.go | ||
// Copyright 2021 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. | ||
|
||
//go:build aix || solaris || zos | ||
// +build aix solaris zos | ||
|
||
package terminal | ||
|
||
import "golang.org/x/sys/unix" | ||
|
||
const ioctlReadTermios = unix.TCGETS | ||
const ioctlWriteTermios = unix.TCSETS |