runereader_linux.go 544 B

123456789101112
  1. // copied from https://github.com/golang/crypto/blob/master/ssh/terminal/util_linux.go
  2. // Copyright 2013 The Go Authors. All rights reserved.
  3. // Use of this source code is governed by a BSD-style
  4. // license that can be found in the LICENSE file.
  5. package terminal
  6. // These constants are declared here, rather than importing
  7. // them from the syscall package as some syscall packages, even
  8. // on linux, for example gccgo, do not declare them.
  9. const ioctlReadTermios = 0x5401 // syscall.TCGETS
  10. const ioctlWriteTermios = 0x5402 // syscall.TCSETS