[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: How can I find out whether my program is running interactively?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 4 Nov 2011 08:07:04 +0200
I want my program to print out a message when io.stdout is a terminal,
but not when it is a disk file. Current solution: write it to
io.stderr, not io.stdout. Is there a better way?
Dirk