From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HZApb-00085t-0l for garchives@archives.gentoo.org; Wed, 04 Apr 2007 19:07:43 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l34J5d3k000674; Wed, 4 Apr 2007 19:05:39 GMT Received: from crowfix.com (crowfix.com [216.240.38.154]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l34J0eAk027912 for ; Wed, 4 Apr 2007 19:00:41 GMT Received: (qmail 10693 invoked by uid 1000); 4 Apr 2007 19:00:35 -0000 Date: Wed, 4 Apr 2007 12:00:35 -0700 From: felix@crowfix.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Why are gentoo people so in love with colorizedoutput?!? Message-ID: <20070404190035.GA7785@crowfix.com> References: <20070404155321.GA10689@crowfix.com> <3D60AF2712C16D42A38076E52FD6E3D25E1B49@ukmcrdembx01.rd.astrazeneca.net> <20070404170743.GA13332@crowfix.com> <200704042010.49412.harmgeerts@home.nl> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <200704042010.49412.harmgeerts@home.nl> User-Agent: Mutt/1.5.14 (2007-02-12) X-Archives-Salt: 8c5c183f-51fb-4b97-b0dc-78931addfa0c X-Archives-Hash: 24c0efe308a57944e38f4ef17aae0b1b --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 04, 2007 at 08:10:49PM +0200, Harm Geerts wrote: > `which emerge` does actually yield `/usr/bin/emerge` does it? For the record, then -- # which emerge /usr/bin/emerge # grep -i color /etc/make.conf NOCOLOR="true" # echo $TERM screen and here are a zillion ways of trying to disable color output. In all of these cases except piping into less, the phrase Searching for a previously downloaded file in is in yellow, and the phrase /usr/portage/distfiles is in green. Those two phrases are common to all examples. I did not abort them all at the same time, and the phrase The best of all is ... digikam-doc-0.8.2-et.tar.bz2 is in green up to and including the ellipsis with the remainder in blue. There are some other phrases in green and yellow too. Piping into less did not come out in color, but in ascii escape sequences. Either they got garbled and are the proper color sequences, or less declined to show them as color, and I don't care which for the purposes at hand. Redirecting into a file, then catting the file, reproduced the colors faithfully. I will try to attach the color output, but I do not know if the mailing will allow attachments. # emerge -f digikam Calculating dependencies... done! >>> Emerging (1 of 1) media-gfx/digikam-0.9.1 to / >>> Downloading >>> 'http://distfiles.gentoo.org/distfiles/digikam-doc-0.8.2-es.tar.bz2' Searching for a previously downloaded file in /usr/portage/distfiles Exiting on signal 2 # emerge --nocolor -f digikam *** Deprecated use of '--nocolor', use '--color=n' instead. Calculating dependencies... done! >>> Emerging (1 of 1) media-gfx/digikam-0.9.1 to / >>> Downloading >>> 'http://distfiles.gentoo.org/distfiles/digikam-doc-0.8.2-es.tar.bz2' Searching for a previously downloaded file in /usr/portage/distfiles Exiting on signal 2 # emerge --color=n -f digikam Calculating dependencies... done! >>> Emerging (1 of 1) media-gfx/digikam-0.9.1 to / >>> Downloading >>> 'http://distfiles.gentoo.org/distfiles/digikam-doc-0.8.2-es.tar.bz2' Searching for a previously downloaded file in /usr/portage/distfiles Exiting on signal 2 # TERM=vt100 emerge -f digikam Calculating dependencies... done! >>> Emerging (1 of 1) media-gfx/digikam-0.9.1 to / >>> Downloading >>> 'http://distfiles.gentoo.org/distfiles/digikam-doc-0.8.2-es.tar.bz2' Searching for a previously downloaded file in /usr/portage/distfiles We have the following candidates to choose from digikam-doc-0.8.0-es.tar.bz2 digikam-doc-0.8.0-et.tar.bz2 digikam-doc-0.8.2-et.tar.bz2 The best of all is ... digikam-doc-0.8.2-et.tar.bz2 Checking if this file is OK. Exiting on signal 2 # TERM=vt100 emerge -f digikam | less Calculating dependencies ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... done! >>> Emerging (1 of 1) media-gfx/digikam-0.9.1 to / >>> Downloading >>> 'http://distfiles.gentoo.org/distfiles/digikam-doc-0.8.2-es.tar.bz2' ESC[01;32mSearching for a previously downloaded file in >>> ESC[01;33m/usr/portage/distfiles ESC[00m ESC[01;32mWe have the following candidates to choose from ESC[01;33mdigikam-doc-0.8.0-es.tar.bz2 digikam-doc-0.8.0-et.tar.bz2 digikam-doc-0.8.2-et.tar.bz2 ESC[00m ESC[01;32mThe best of all is >>> ... ESC[01;36mdigikam-doc-0.8.2-et.tar.bz2 ESC[00m ESC[01;33mChecking if this file is OK. ESC[00m : Exiting on signal 2 # TERM=vt100 emerge -f digikam >/tmp/colors.out --11:50:17-- http://linux01.gwdg.de/~nlissne/deltup.php?have=digikam-doc-0.8.2-et.tar.bz2&want=digikam-doc-0.8.2-es.tar.bz2&url=http://gentoo-sunrise.org/svndump/peper/distfiles/digikam-doc-0.8.2-es.tar.bz2&version=0.7&time=1175712617 => `deltup.php?have=digikam-doc-0.8.2-et.tar.bz2&want=digikam-doc-0.8.2-es.tar.bz2&url=http:%2F%2Fgentoo-sunrise.org%2Fsvndump%2Fpeper%2Fdistfiles%2Fdigikam-doc-0.8.2-es.tar.bz2&version=0.7&time=1175712617' Resolving linux01.gwdg.de... 134.76.13.21 Connecting to linux01.gwdg.de|134.76.13.21|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://dev.gentooexperimental.org/deltup/digikam-doc-0.8.2-et.tar.bz2-digikam-doc-0.8.2-es.tar.bz2.dtu [following] --11:50:20-- http://dev.gentooexperimental.org/deltup/digikam-doc-0.8.2-et.tar.bz2-digikam-doc-0.8.2-es.tar.bz2.dtu => `digikam-doc-0.8.2-et.tar.bz2-digikam-doc-0.8.2-es.tar.bz2.dtu' Resolving dev.gentooexperimental.org... 81.93.240.53 Connecting to dev.gentooexperimental.org|81.93.240.53|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 18,914,412 (18M) [application/octet-stream] 17% [===========> ] 3,333,028 209.47K/s ETA 01:30 Exiting on signal 2 # cat /tmp/xxx Calculating dependencies ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... done! >>> Emerging (1 of 1) media-gfx/digikam-0.9.1 to / >>> Downloading >>> 'http://distfiles.gentoo.org/distfiles/digikam-doc-0.8.2-es.tar.bz2' Searching for a previously downloaded file in /usr/portage/distfiles We have the following candidates to choose from digikam-doc-0.8.0-es.tar.bz2 digikam-doc-0.8.0-et.tar.bz2 digikam-doc-0.8.2-et.tar.bz2 The best of all is ... digikam-doc-0.8.2-et.tar.bz2 Checking if this file is OK. Trying to download digikam-doc-0.8.2-et.tar.bz2-digikam-doc-0.8.2-es.tar.bz2.dtu -- ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 I've found a solution to Fermat's Last Theorem but I see I've run out of room o --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="colors.out" Content-Transfer-Encoding: quoted-printable Calculating dependencies ..... ..... ..... ..... ..... ..... ..... ..... .= =2E... ..... ..... ....=08=08... done! >>> Emerging (1 of 1) media-gfx/digikam-0.9.1 to / >>> Downloading 'http://distfiles.gentoo.org/distfiles/digikam-doc-0.8.2-es= =2Etar.bz2' =1B[01;32mSearching for a previously downloaded file in =1B[01;33m/usr/port= age/distfiles =1B[00m =1B[01;32mWe have the following candidates to choose from=20 =1B[01;33mdigikam-doc-0.8.0-es.tar.bz2 digikam-doc-0.8.0-et.tar.bz2 digikam-doc-0.8.2-et.tar.bz2=20 =1B[00m =1B[01;32mThe best of all is ... =1B[01;36mdigikam-doc-0.8.2-et.tar.bz2 =1B[00m =1B[01;33mChecking if this file is OK. =1B[00m =1B[01;32mTrying to download =1B[01;33mdigikam-doc-0.8.2-et.tar.bz2-digikam= -doc-0.8.2-es.tar.bz2.dtu =1B[00m --ReaqsoxgOBHFXBhH-- -- gentoo-user@gentoo.org mailing list