[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Printing to terminal/standard output problem
- From: Tony Finch <dot@...>
- Date: Mon, 21 Nov 2011 23:32:46 +0000
Francesco Abbate <firstname.lastname@example.org> 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().
f.anthony.n.finch <email@example.com> http://dotat.at/
Southeast Biscay: Southeasterly, backing northeasterly, 3 or 4. Moderate or
rough, occasionally very rough later. Showers. Good, occasionally poor.