extracted code that checks for terminal support into a useable method
Merge pull request #3 from eukreign/master

extracted code that checks for terminal support into a useable method