func (s *Server) handleWinChange(ch ssh.Channel, req *ssh.Request, ctx *ctx) error {
	params, err := parseWinChange(req)
	if err != nil {
		ctx.Error(err)
		return trace.Wrap(err)
	}
	term := ctx.getTerm()
	if term != nil {
		err = term.setWinsize(*params)
		if err != nil {
			ctx.Error(err)
		}
	}
	return trace.Wrap(s.reg.notifyWinChange(*params, ctx))
}
// handleWinChange gets called when 'window chnged' SSH request comes in
handleWinChange gets called when 'window chnged' SSH request comes in
// handleWinChange gets called when ' window chnged ' SSH request comes in
func (s *Server) handleWinChange(ch ssh.Channel, req *ssh.Request, ctx *ctx) error {
	params, err := parseWinChange(req)
	if err != nil {
		ctx.Error(err)
		return trace.Wrap(err)
	}
	term := ctx.getTerm()
	if term != nil {
		err = term.setWinsize(*params)
		if err != nil {
			ctx.Error(err)
		}
	}
	return trace.Wrap(s.reg.notifyWinChange(*params, ctx))
}
func ( s * Server ) handleWinChange ( ch ssh . Channel , req * ssh . Request , ctx * ctx ) error { params , err := parseWinChange ( req ) if err != nil { ctx . Error ( err ) return trace . Wrap ( err ) } term := ctx . getTerm ( ) if term != nil { err = term . setWinsize ( * params ) if err != nil { ctx . Error ( err ) } } return trace . Wrap ( s . reg . notifyWinChange ( * params , ctx ) ) }
handleWinChange gets called when 'window chnged' SSH request comes in
handleWinChange gets called when ' window chnged ' SSH request comes in