[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Printing to terminal/standard output problem
- From: Tony Finch <dot@...>
- Date: Mon, 21 Nov 2011 23:32:46 +0000
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.