Make public method `isTty()` from Console class

There are other cases you may want to know if you are in an interactive
shell or not.
Merge pull request #6 from henriquemoody/is_tty

Make public method `isTty()` from Console class