This is about as simple as it could be, but hopefully no simpler.  It's designed for the world of Windows consoles and terminal emulators, not 9600 baud dialup links.  Critique invited, and I'm sure there will be plenty to critique!

https://bitbucket.org/cowan/r7rs-wg1-infra/src/default/TerminalsCowan.md