From owner-freebsd-questions@FreeBSD.ORG Fri May 19 22:31:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E39EA16A428 for ; Fri, 19 May 2006 22:31:00 +0000 (UTC) (envelope-from matze@matzsoft.de) Received: from ds80-237-203-117.dedicated.hosteurope.de (ds80-237-203-117.dedicated.hosteurope.de [80.237.203.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id A027B43D55 for ; Fri, 19 May 2006 22:30:59 +0000 (GMT) (envelope-from matze@matzsoft.de) Received: (qmail 99309 invoked from network); 19 May 2006 22:27:01 -0000 Received: from unknown (HELO ?192.168.0.4?) (matze@mausland-entertainment.com@85.182.73.17) by 0 with AES256-SHA encrypted SMTP; 19 May 2006 22:27:01 -0000 Message-ID: <446E47D6.1050706@matzsoft.de> Date: Sat, 20 May 2006 00:33:58 +0200 From: Mathias Menzel-Nielsen User-Agent: Thunderbird 1.5 (X11/20060304) MIME-Version: 1.0 To: "gs_stoller@juno.com" References: <20060519.150338.12386.853944@webmail45.nyc.untd.com> In-Reply-To: <20060519.150338.12386.853944@webmail45.nyc.untd.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd questions Subject: Re: colors in messages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2006 22:31:01 -0000 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....