⬆️ Update dependencies
This commit is contained in:
+3
-3
@@ -1,4 +1,4 @@
|
||||
// +build !appengine,linux freebsd darwin dragonfly netbsd openbsd
|
||||
//go:build !tinygo && ((!appengine && linux) || freebsd || darwin || dragonfly || netbsd || openbsd)
|
||||
|
||||
package kong
|
||||
|
||||
@@ -26,9 +26,9 @@ func guessWidth(w io.Writer) int {
|
||||
|
||||
if _, _, err := syscall.Syscall6(
|
||||
syscall.SYS_IOCTL,
|
||||
uintptr(fd), // nolint: unconvert
|
||||
uintptr(fd), //nolint: unconvert
|
||||
uintptr(syscall.TIOCGWINSZ),
|
||||
uintptr(unsafe.Pointer(&dimensions)), // nolint: gas
|
||||
uintptr(unsafe.Pointer(&dimensions)), //nolint: gas
|
||||
0, 0, 0,
|
||||
); err == 0 {
|
||||
if dimensions[1] == 0 {
|
||||
|
||||
Reference in New Issue
Block a user