In-progress work to do a synchronized reads for a tty. Doesn't compile.