Is there a way of determining whether stdin is on a tty (or windows command prompt)? Case 1: program is started normally, is_tty is true Case 2: program is started as part of a pipeline, is_tty is false Thanks, -- Colin JN Breame