unix: add ioctl functions to get/set terminal window size on Linux
Add IoctlGetWinsize and IoctlSetWinsize to retreive and manipulate Winsize structures on Linux, akin to the already existing implementation on Solaris. Also remove the named result parameter for IoctlSetInt and IoctlSetTermios, as they add no additional use. Change-Id: Id349d1d6a21d5c9a05943f4dcc3a275613ccf7b8 Reviewed-on: https://go-review.googlesource.com/49231 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Showing
Please
register
or
sign in
to comment