Checkpoint - changing terminal to use waitpid() next.
Use waitpid() - works nicely.
Split tt.cpp into a bunch of files.
Worst terminal ever, but is interactive via X.