Debugging applications can be challenging, especially when working with terminals that are iffy or new.
It would be nice to have a debug facility that captured all the things we send to the terminal, as well as everything we receive from it.
This should IMO take the form of a trace type facility. It might be pretty big so it needs to have some facility for a circular ring or something.
See #532 for some of the related conversation.