Big internal reorganisation to move tty control into parent.

30 files changed