Add a prompt buffer to the server.
Forward the environment variables to the prompt server.
Overload the child process environment.
Make the prompt script use the server.