don't call Haskeline to read input when stdin is not a terminal