Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 May 2006 00:33:58 +0200
From:      Mathias Menzel-Nielsen <matze@matzsoft.de>
To:        "gs_stoller@juno.com" <gs_stoller@juno.com>
Cc:        freebsd questions <freebsd-questions@freebsd.org>
Subject:   Re: colors in messages
Message-ID:  <446E47D6.1050706@matzsoft.de>
In-Reply-To: <20060519.150338.12386.853944@webmail45.nyc.untd.com>
References:  <20060519.150338.12386.853944@webmail45.nyc.untd.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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....




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?446E47D6.1050706>