Implement autoread in screen mode.

This was a substantial change, and may have introduced errors
and bugs that I haven't run into yet, especially since I'm hardly
ever in screen mode.