Commit Graph

5 Commits

Author SHA1 Message Date
Fazal Majid
d584804c77 support for Solaris (#64)
* first draft of Solaris support

* implemented new APIs for Solaris

* fixes for Solaris ioctls, tested using github.com/yudai/gotty as a test bed
2019-06-29 11:02:41 -04:00
Keith Rarick
7dc38fb350 remove deprecated nomenclature
The words "master" and "slave" in this context are both
harmful and, as a technical matter, confusing and
misleading. It was never my intention to use those terms
in this library, but they snuck in while I wasn't paying
attention.

This change replaces them with "pty" and "tty",
respectively, to be consistent with the other files in
this package and with the device names on BSD platforms.
These terms are not harmful (to the best of my
knowledge) and they're more specific.

In editing the comment in pty_linux.go, this patch also
corrects a factual error. The ioctl argument is not
"zero valued", it is a nonzero pointer to the number 0.
2019-01-30 17:10:33 -08:00
Jonathan Logan
f4f01f5967 Added terminal/pty resize functionality and utility function to inherit size from master's pty to slave. Changes type winsize to make it accessible from outside the package. (#39) 2018-01-06 12:34:20 -05:00
Steve Sanders
fe7bf43396 Don't attempt to build on windows 2015-11-04 12:44:15 -08:00
Keith Rarick
87da17124b get rows and cols in a tty 2013-03-16 18:25:38 -07:00