Finalize all terminal related functions

git-svn-id: https://subversion.ews.illinois.edu/svn/sp14-ece391/_projects/group14/branches/terminal-driver@15949 1cec0ab5-dbbe-4d55-bb2a-e14ca091d7d0