Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: coloring STDERR to terminal
- X-seq: zsh-users 7716
- From: Atom 'Smasher' <atom@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: coloring STDERR to terminal
- Date: Tue, 20 Jul 2004 05:10:40 -0400 (EDT)
- In-reply-to: <20040702124259.GS2033@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040627190433.Q27888@willy_wonka> <Pine.LNX.4.60.0406280815130.19831@xxxxxxxxxxxxxxxxxx> <20040629160826.GL2033@xxxxxxxxxxxxx> <Pine.LNX.4.60.0406291002300.31134@xxxxxxxxxxxxxxxxxx> <20040630070902.GO2033@xxxxxxxxxxxxx> <Pine.LNX.4.60.0406300311020.5600@xxxxxxxxxxxxxxxxxx> <20040630114341.GR2033@xxxxxxxxxxxxx> <Pine.LNX.4.60.0406300906100.5600@xxxxxxxxxxxxxxxxxx> <20040701181459.GF2033@xxxxxxxxxxxxx> <Pine.LNX.4.60.0407011645450.16728@xxxxxxxxxxxxxxxxxx> <20040702124259.GS2033@xxxxxxxxxxxxx>
-----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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author