From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27052 invoked from network); 20 Jul 2004 09:13:45 -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 09:13:45 -0000 Received: (qmail 62426 invoked from network); 20 Jul 2004 09:13:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jul 2004 09:13:39 -0000 Received: (qmail 24334 invoked by alias); 20 Jul 2004 09:12:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7716 Received: (qmail 24324 invoked from network); 20 Jul 2004 09:12:55 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 20 Jul 2004 09:12:55 -0000 Received: (qmail 60797 invoked from network); 20 Jul 2004 09:10:57 -0000 Received: from rso.suspicious.org (HELO research.suspicious.org) (69.55.224.62) by a.mx.sunsite.dk with SMTP; 20 Jul 2004 09:10:55 -0000 Received: (qmail 77025 invoked by uid 1002); 20 Jul 2004 09:10:52 -0000 X-POM: The Moon is Waxing Crescent (8% of Full) Date: Tue, 20 Jul 2004 05:10:40 -0400 (EDT) From: Atom 'Smasher' To: zsh-users@sunsite.dk Subject: Re: coloring STDERR to terminal In-Reply-To: <20040702124259.GS2033@ay.vinc17.org> Message-ID: <20040720045514.V326@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> 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 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. i think the best way to do it would be an environment variable, something like this: STDERR_COL=91,107 which would wrap STDERR in: ^[[91m^[[107m{output}^[[0m maybe a STDIN_COL and STDOUT_COL could also be handy? that seems to be the only way to ~properly~ deal with the synchronization and buffer issues. ...atom _________________________________________ PGP key - http://atom.smasher.org/pgp.txt 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "Do not wait; the time will never be 'just right.' Start where you stand, and work with whatever tools you may have at your command, and better tools will be found as you go along." -- Napoleon Hill -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.6 (FreeBSD) Comment: What is this gibberish? Comment: http://atom.smasher.org/links/#digital_signatures iQEcBAEBCAAGBQJA/OGWAAoJEAx/d+cTpVcizhYH/2gi5w9cjys16gr3+49wUdoE llxeoAIBoyjd/MrZE7OLniL5OYrYgPjuus5SpoXoO5x4UY7azVWbLggIEVQGs0+9 Jyl8aJvhpIFTTTKqCVoUTgdbBPXbA57OWQ63FSqmPS8c3kRifi8NF3oHqHXVk2hu /mUJJx6ROxWcf2S3LArOmzHxpAo+f4sASL8MRoGmrl46n38isYh4VAr61Tino5yu OsnAnkOdgSqreXLP10LwRYnd84khn1tDZVqY+6CeEW3W7of/8sNxp6qDhO6tttFA uPMvcY5COXZbsiGRR8LjHaWrGrpVLqU0h3zkT5H2rXenxsyMF5VffRtprfDJ2pk= =8KIU -----END PGP SIGNATURE-----