Always respond to PTY requests

Fixes #13
This commit is contained in:
Kaleb Elwert 2017-02-03 15:21:20 -08:00
parent 7bc24bc5e0
commit b9687a28f0

@ -160,8 +160,9 @@ func (sess *session) handleRequests(reqs <-chan *gossh.Request) {
if ok {
sess.pty = &Pty{Window{width, height}}
sess.winch = make(chan Window)
req.Reply(true, nil)
}
req.Reply(ok, nil)
case "window-change":
if sess.pty == nil {
req.Reply(false, nil)