From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21702 invoked from network); 20 Jul 2004 19:31:15 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Jul 2004 19:31:15 -0000 Received: (qmail 26779 invoked from network); 20 Jul 2004 19:31:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jul 2004 19:31:09 -0000 Received: (qmail 17004 invoked by alias); 20 Jul 2004 19:30:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7718 Received: (qmail 16991 invoked from network); 20 Jul 2004 19:30:25 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 20 Jul 2004 19:30:25 -0000 Received: (qmail 24958 invoked from network); 20 Jul 2004 19:28:26 -0000 Received: from rso.suspicious.org (HELO research.suspicious.org) (69.55.224.62) by a.mx.sunsite.dk with SMTP; 20 Jul 2004 19:28:25 -0000 Received: (qmail 59200 invoked by uid 1002); 20 Jul 2004 19:28:23 -0000 X-POM: The Moon is Waxing Crescent (11% of Full) Date: Tue, 20 Jul 2004 15:27:54 -0400 (EDT) From: Atom 'Smasher' To: zsh-users@sunsite.dk Subject: Re: coloring STDERR to terminal In-Reply-To: Message-ID: <20040720151617.N326@willy_wonka> References: <20040627190433.Q27888@willy_wonka> <20040629160826.GL2033@ay.vinc17.org> <20040630070902.GO2033@ay.vinc17.org> <20040630114341.GR2033@ay.vinc17.org> <20040701181459.GF2033@ay.vinc17.org> <20040702124259.GS2033@ay.vinc17.org> <20040720045514.V326@willy_wonka> X-OpenPGP-KeyID: 0xB88D52E4D9F57808 (4096-RSA) X-OpenPGP-Fingerprint: 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 X-OpenPGP-URL: http://smasher.suspicious.org/pgp.txt MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Tue, 20 Jul 2004, Bart Schaefer wrote: > On Tue, 20 Jul 2004, Atom 'Smasher' wrote: >> as i suspected, there doesn't seem to be a really good way to do this... >> although there are several ways to ~almost~ do it well. >> >> that said, i'd like to request a feature for coloring STDERR. > > Your first sentence is quite literally true, which makes your feature > request a little pointless. It doesn't matter by whom [*] the coloring is > done; all the problems so far discussed are still present, with the > possible exception of zsh being able to avoid printing a prompt in the > middle of the error output. <> ================ you raise some intersting issues... and not being much of a C programmer myself i'm not sure how to address them... my logic is that if the coloring of STDOUT, STDERR and echoing STDIN is handled ~internally~ by the shell, then everything else should (FTMP) work itself out. ...atom _________________________________________ PGP key - http://atom.smasher.org/pgp.txt 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "`Energize the demolition beams.' Light poured out into the hatchways. `I don't know,' said the voice on the PA, `apathetic bloody planet, I've no sympathy at all.' It cut off. There was a terrible ghastly silence. There was a terrible ghastly noise. There was a terrible ghastly silence. -- Douglas Adams, Hitchhikers Guide to the Galaxy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.6 (FreeBSD) Comment: What is this gibberish? Comment: http://atom.smasher.org/links/#digital_signatures iQEcBAEBCAAGBQJA/XJAAAoJEAx/d+cTpVciMkoIAIeAXCFMjV0q2hKeldkNt3qS aXVOVbGLD1Y83GyaK2yXOQftxPlI3HI/5sMF+DkwvyJ6BW2gZWpx4zEkweE7Z3jy z6X+NPSdwEkRzQl61e31v48hcxqVCijskRju2Tubbsk9D/3os7YorkO4qqbH00Dk Jc1nugT8mkep+XaZrtlzTQAzAgtaSKlPeeFeJtToV0sVQvTsI15XTkWdPWYr70X6 bxypD0FGAvdkuUIpT3Rj2WfXRBhgZ/5iutfSs9krXkeH0tqJhHM4x90KPPEMgUMR MdaVrPGfF8N5EQi+FdkjdwwKAWjd4LQJ10UMfKuXHfkR4MrpHfbfgsnSIFaZJ+U= =LQxS -----END PGP SIGNATURE-----