lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 4 November 2011 09:25, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> 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?
>
> Under Unix, you can write to /dev/tty.

and on win32 to con or conout$.