lua-users home
lua-l archive

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


Francesco Abbate <francesco.bbt@gmail.com> wrote:
>
> Please note that the use of "fileno" can be avoided if you assume that
> the file descriptor of stdin is 0. This is always true on linux.

It's true on all POSIX systems. I don't know if there are non-POSIX
systems that support isatty().

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Southeast Biscay: Southeasterly, backing northeasterly, 3 or 4. Moderate or
rough, occasionally very rough later. Showers. Good, occasionally poor.