diff --git a/util.go b/util.go index 3911040..73b370a 100644 --- a/util.go +++ b/util.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux,!appengine netbsd openbsd +// +build aix darwin dragonfly freebsd linux,!appengine netbsd openbsd zos // Package terminal provides support functions for dealing with terminals, as // commonly found on UNIX systems. diff --git a/util_zos.go b/util_zos.go new file mode 100644 index 0000000..8314a2d --- /dev/null +++ b/util_zos.go @@ -0,0 +1,10 @@ +// Copyright 2020 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