[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 03:02:16 +0300

Branko Čibej <brane_at_xbc.nu> writes:

> We're already doing WinAPI calls in cmdline.c. No need to mix this up
> with APR.
> (Also "character device" and "tty" are sorta like, y'know, not quite the
> same thing.)

_isatty in Wine and ReactOS returns true whenever GetFileType returns
FILE_TYPE_CHAR, so it does not distinguish ttys from other
character devices. The Microsoft CRT is said to work the same way:
http://www.codeproject.com/script/Forums/View.aspx?fid=1650&msg=2291041

If progress output must be disabled when stdout is redirected to
a printer, then I guess one could call some Win32 console
function and see whether it fails. I'm not sure how reliable
such a hack would be, though.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1475504
Received on 2009-03-30 02:02:49 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.