get_terminal_width checks both STDIN and STDOUT
Merge pull request #122 from jbutera/master

get_terminal_width checks both STDIN and STDOUT