func requestPtyReq(request *ssh.Request) (ok bool, term string, width, height uint32) { var length uint32 var slice []byte ok = !bites.Get(request.Payload).GetUint32(&length).GetSlice(&slice, int(length)).GetUint32(&width).GetUint32(&height).Error() term = string(slice) return }
func requestWindowChange(request *ssh.Request) (ok bool, width, height uint32) { ok = !bites.Get(request.Payload).GetUint32(&width).GetUint32(&height).Error() return }