Check if terminal is interactive