work on BSD and Windows
Win fix
win again
Merge pull request #1 from howeyc/master

Terminal size on FreeBSD and Windows