Update terminal.py

Fix the error in determining the size of the terminal on FreeBSD.
Update terminal.py
Merge pull request #113 from unhandled-exception/master

Added a definition of the size of the terminal on FreeBSD