windows build now also working but without pty support.
This commit is contained in:
parent
1e422dd698
commit
d2801d0019
24
pkg/terminal/pty_windows.go
Normal file
24
pkg/terminal/pty_windows.go
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
package terminal
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/gliderlabs/ssh"
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
"os/exec"
|
||||||
|
)
|
||||||
|
|
||||||
|
var PtySpawner = Spawner(func(sshSession ssh.Session, env []string, name string, arg ...string) (Process, error) {
|
||||||
|
return nil, nil
|
||||||
|
})
|
||||||
|
|
||||||
|
type ptyProcess struct {
|
||||||
|
cmd *exec.Cmd
|
||||||
|
f *os.File
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p ptyProcess) Pipe() io.ReadWriter {
|
||||||
|
return p.f
|
||||||
|
}
|
||||||
|
func (p ptyProcess) Wait() error {
|
||||||
|
return p.cmd.Wait()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user