code: func getWidthFd(stdoutFd int) int {
  	ws := &winsize{}
  	retCode, _, errno := syscall.Syscall(syscall.SYS_IOCTL,
  		uintptr(stdoutFd),
  		uintptr(syscall.TIOCGWINSZ),
  		uintptr(unsafe.Pointer(ws)))
  
  	if int(retCode) == -1 {
  		_ = errno
  		return -1
  	}
  
  	return int(ws.Col)
  }
docs: // get width of the terminal