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.

Even though I think it's better rename the method to `isInteractive()` or something like that and maybe use `0` (`STDIN`) as default value.
Sure.