The terminal attached to this subprocess, if spawned with the terminal option. Returns undefined if no terminal was attached.
When a terminal is attached, stdin, stdout, and stderr return null. Use terminal.write() and the data callback instead.