handy-sshd/pty_related_unsupported.go
2023-08-09 08:01:01 +09:00

19 lines
397 B
Go

//go:build windows
// +build windows
package handy_sshd
import (
"fmt"
"golang.org/x/crypto/ssh"
"os"
)
func (s *Server) createPty(shell string, connection ssh.Channel) (*os.File, error) {
return nil, fmt.Errorf("creation of pty unsupported")
}
// setWinsize sets the size of the given pty.
func setWinsize(t *os.File, w, h uint32) error {
return fmt.Errorf("set-win-size unsupported")
}