Initial work on generalising ttybotron.