Added a definition of the size of the terminal on FreeBSD

Added "FreeBSD" in the list of unix systems, when determining the size of the terminal. And fixed the bug in 26 line that caused the error UnboundLocalError, if the system has not been defined in previous if-statement.