[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [GSOC]Show progress output

From: Kalle Olavi Niemitalo <kon_at_iki.fi>
Date: Mon, 30 Mar 2009 02:24:18 +0300

Branko Cibej <brane_at_xbc.nu> writes:

> I think trying the "isatty" way is a good idea. There's no need to
> embarrass script writers unless absolutely necessary.
>
> Portability could be an issue (Windows, Windows, give me your answer, do
> ...) but it can't be worse than the other command-line bits, and we
> already have a cmdline.c that's full of Win-specific ifdefs.

On Windows, there is GetFileType in Win32 and _isatty in CRT.
http://msdn.microsoft.com/library/aa364960.aspx
http://msdn.microsoft.com/library/f4s0ddew.aspx

apr_file_info_get calls GetFileType and the source looks like it
sets APR_CHR in the appropriate situations. It requires an
apr_file_t * but apr_file_open_stdout can apparently provide one.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1475212
Received on 2009-03-30 01:24:45 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.