Re: can I color STDERR seperately in red
- From: bsh <brian_hiles@xxxxxxxxxxxxxx>
- Date: Wed, 30 Jul 2008 14:56:21 -0700 (PDT)
Rahul <nos...@xxxxxxxxxxxxxx> wrote:
Normally the stderr and stdout are both tied to the terminal of my tcshell.
Is it possible to tweak the shell so that all STDERR output is colored
distinctively, say in red?
Oh, you're goin' to love this....
There are so many script frontends to colorize (colourize?) output
streams, that it seems a waste to reinvent the wheel. Just a subset
of my personal notes of scripts, Linux source, and howtos to do so,
are:
"loco.pl",0.32,http://zjuul.net/~jules/loco/,$0,"filter to colorize
file/stdin: implements Term::ANSIColor",<zuntum@xxxxxxxxxx>
"dump_set.ksh",1.5,http://www.xs4all.nl/~gerardvw/HOME/ksh_settings/
functions/dump_set,$0,"show color combinations on ANSI terminal",GVW
"colortable16.bash",,http://frexx.de/xterm-256-notes/;http://frexx.de/
xterm-256-notes/data/colortable16.sh,$0,"display color
table","Wolfgang Frisch" <xororand@xxxxxxxxx>
^ vim(1) colorschemes for xterm's 256 extended color :
http://www.vim.org/scripts/script.php?script_id=1143
http://frexx.de/xterm-256-notes/themes/desert256.vim
"ScriptEchoColor.bash",1.14,http://sf.net/projects/scriptechocolor/,
$0,"text/script colorizing/formatting","Henrique 'Teike' Abdalla"
<teike@xxxxxxxxxxxx>
^ RM: Integrated with StructIntegrDB.String
"regex-markup.",0.9.0,http://www.gentooexperimental.org/~karltk/
package-index/packages/regex-markup/regex-markup.html,$0,"color syslog
files: NCA"
"Cheap ANSI color!",,http://linuxgazette.net/issue01to08/
articles.html#ansi,$0,"webpage","Jim Valentine" <simon@xxxxxxx>
"dircolors.",,http://linuxgazette.net/issue01to08/misc/,$0,"","H.
Peter Anvin" <Peter.Anvin@xxxxxxxxx>
^ http://linuxgazette.net/issue01to08/misc/DIR_COLORS
"(Not So) Stupid Shell Tricks",2003-09-15,http://www.linux-mag.com/id/
1456,$0,"webpage",JP
"cecho.sh",,http://www.zazzybob.com/bin/cecho.html,$0,""
"Linux Colors in Aterm/rxvt",,http://gentoo-wiki.com/
TIP_Linux_Colors_in_Aterm/rxvt,$0,"webpage"
"dircolors.",,XXX;http://homepages.cwi.nl/~aeb/linux/man2html/man1/
dircolors.1.html,$0,"",<aeb@xxxxxx>
"libcolor.bash",,http://vaab.free.fr/utilities/vlfs-shlib/
index.en.html,$0,": contained-in vlfs-shlib","Valentin Lab"
<vaab@xxxxxxx>
"zen.bash",0.1b,http://www.ibiblio.org/pub/linux/system/misc/
zen-0.1b.tar.gz,$0,"color schemes, prompt schemes, and a formatted
vhost table, bashrc and global bash profiles","Tim Perkins"
<tperkins@xxxxxxxxxxxx>
"setcolours.{bash3,ksh93}",*1.16,ftp://ftp.sysdev.org/pub/lintools/
LTT/;ftp://ftp.sysdev.org/pub/lintools/LTT/readme.txt,$0,"console
environment colour posting utility: component-of LTT","Tony Borras"
<tonyb@xxxxxxxxxx,tools-
request@xxxxxxxxxx?subject=subscribe>
^ QT: Used in conjuction with emit.sh console colour manager
"colorifer.c",1.0.1rc6,http://colorifer.sf.net/,$0,"set of utilities
to color output of other processes","Stanislav Ievlev"
<inger@xxxxxxxxxxx,inger@xxxxxxxxxxxx>; "Alexey Voinov"
^ "CSed.",,,$0,"color stream editor"
^ "Colorifer.sh",,,$0,"wrapper to run program and colorize it's
output"
^ "Pcolorize.sh",,,,"setup colorifer"
"Daniels Colorize.pl",,http://freshmeat.net/projects/colorize_perl/,
$0,"colorizer","Daniel Flinkmann" <dflinkmann@xxxxxx>
"cw.c",,http://sf.net/projects/cwrapper/;http://directory.fsf.org/
cw.html;http://freshmeat.net/projects/cw/,$0,"Color Wrapper -- ANSI
color wrapper",<v9@xxxxxxxxxxxxxxxxxxxx>
^ RM: designed to simulate the environment of the commands being
executed
"ColorDiff.",,http://freshmeat.net/projects/colordiff/
"cse.",,http://freshmeat.net/projects/csed/
"colormake.pl",0.2-3.2,http://bre.klaki.net/programs/colormake/,
$0,"simple wrapper around make(1) to colorize output","Bjarni R.
Einarsson"
"colors.sh",,http://www.intuitive.com/wicked/showscript.cgi?011-
colors.sh,$0,"",
"colourshell.bash",,http://freshmeat.net/projects/colourshell/;http://
chezphil.org/colourshell/,$0,"colourise interactive bash(1)
session","Phil Endecott" <http://chezphil.org/feedback/index.html>
"color",1.1,http://www.runslinux.net/projects/color;http://
www.runslinux.net/projects.html#Color,$0,"","Moshe Jacobson" <http://
www.runslinux.net/contact.html>
and, just because it directly addresses the paradigm
of your proposed solution:
"hilite.",1.5,http://sf.net/projects/hilite,$0,"highlights stderr text
in red"
=Brian
P.S. A Usenet Web frontend will probably break the URL lines; such
look
at the original source.
P.P.S. Excuse the accidental reduntant post.
.
- Prev by Date: Re: can I color STDERR seperately in red
- Next by Date: Re: mysqld wont start...
- Previous by thread: Re: can I color STDERR seperately in red
- Next by thread: gvSIG SVN has been freed
- Index(es):
Relevant Pages
|