tty can be configured as part of process spec

this allows configuration like window size to be configured immediately;
otherwise there is a race with the process starting, where sending window size
may not be effective