From: Matthias Lederhofer Date: Sat, 05 Aug 2006 11:28:51 GMT Subject: Re: [PATCH] git-status: colorize status output Message-ID: <20060805112851.GA20807@moooo.ath.cx> In-Reply-To: <7vejvve8ci.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Matthias Lederhofer writes: > >> Color support is controlled by status.color and status.color.*. There is no > >> command line option, and the status.color variable is a simple boolean (no > >> checking for tty output). > > Is there any way to do isatty() from shell scripts? > > Yes. How? :) Is there any reason not checking isatty()?