1. Rename the stashed window size values. 2. Set the terminal modes after the child process is running. 3. Decode the modes list from the pty-request message. 4. Store the modes list for later use.