Date: Fri, 19 May 2006 20:23:25 -0400 From: Randy Pratt <bsd-unix@earthlink.net> To: Mathias Menzel-Nielsen <matze@matzsoft.de> Cc: freebsd-questions@freebsd.org, gs_stoller@juno.com Subject: Re: colors in messages Message-ID: <20060519202325.82a9f561.bsd-unix@earthlink.net> In-Reply-To: <446E47D6.1050706@matzsoft.de> References: <20060519.150338.12386.853944@webmail45.nyc.untd.com> <446E47D6.1050706@matzsoft.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 May 2006 00:33:58 +0200 Mathias Menzel-Nielsen <matze@matzsoft.de> wrote: > gs_stoller@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 --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060519202325.82a9f561.bsd-unix>