package pty

import 

// InheritSize applies the terminal size of pty to tty. This should be run
// in a signal handler for syscall.SIGWINCH to automatically resize the tty when
// the pty receives a window size change notification.
func (,  *os.File) error {
	,  := GetsizeFull()
	if  != nil {
		return 
	}
	return Setsize(, )
}

// Getsize returns the number of rows (lines) and cols (positions
// in each line) in terminal t.
func ( *os.File) (,  int,  error) {
	,  := GetsizeFull()
	if  != nil {
		return 0, 0, 
	}
	return int(.Rows), int(.Cols), nil
}