Codebase list golang-github-creack-pty / a9758ce7-7750-4d2a-9779-fee6d664fbf1/upstream winsize_unsupported.go
a9758ce7-7750-4d2a-9779-fee6d664fbf1/upstream

Tree @a9758ce7-7750-4d2a-9779-fee6d664fbf1/upstream (Download .tar.gz)

winsize_unsupported.go @a9758ce7-7750-4d2a-9779-fee6d664fbf1/upstreamraw · history · blame

//go:build windows
//+build windows

package pty

import (
	"os"
)

// Winsize is a dummy struct to enable compilation on unsupported platforms.
type Winsize struct {
	Rows, Cols, X, Y uint
}

// Setsize resizes t to s.
func Setsize(*os.File, *Winsize) error {
	return ErrUnsupported
}

// GetsizeFull returns the full terminal size description.
func GetsizeFull(*os.File) (*Winsize, error) {
	return nil, ErrUnsupported
}