colors in messages
Randy Pratt
bsd-unix at earthlink.net
Fri May 19 17:23:25 PDT 2006
On Sat, 20 May 2006 00:33:58 +0200
Mathias Menzel-Nielsen <matze at matzsoft.de> wrote:
> gs_stoller at juno.com wrote:
> >
> > Since I'm asking about FreeBSD (version 4.3), I'm asking about the echo , print , printf , etc. commands, and similar commands ib PERL , awk , etc.
> > Where can I find the vt terminal encoding for this (hopefully on the internet)?
> >
>
> Hi
>
> a simple googlin' for vt100 color codes brings this as first hit:
> tp://www.termsys.demon.co.uk/vtansi.htm
>
> you can change colors by the escape sequences shown in the link resource.
>
> for example to get red text use:
> echo ^[[31m
>
> you can get the escape character by pressing Ctrl-V followed by escape
> in bash and vi and i suppose other environments....
A bit off-topic but I found this reference quite handy when
experimenting with colors in scripts:
http://www.tldp.org/linuxfocus/English/May2004/article335.shtml
HTH,
Randy
--
More information about the freebsd-questions
mailing list