added ptypkt, pty packet mode, to capture changes in the pty parameters