Client: fix missing reply
Server: pass terminal name for pty-req