check if stdin has terminal capability