winsize_unsupported.go 426 B

1234567891011121314151617181920212223
  1. //go:build windows
  2. // +build windows
  3. package pty
  4. import (
  5. "os"
  6. )
  7. // Winsize is a dummy struct to enable compilation on unsupported platforms.
  8. type Winsize struct {
  9. Rows, Cols, X, Y uint16
  10. }
  11. // Setsize resizes t to s.
  12. func Setsize(*os.File, *Winsize) error {
  13. return ErrUnsupported
  14. }
  15. // GetsizeFull returns the full terminal size description.
  16. func GetsizeFull(*os.File) (*Winsize, error) {
  17. return nil, ErrUnsupported
  18. }