Init terminal subpackage.
Add 0-length read handling to stream.py.
Slightly more informative HUP message.