From owner-freebsd-questions Fri Feb 18 9:57: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 3554F37B803 for ; Fri, 18 Feb 2000 09:57:00 -0800 (PST) (envelope-from dan@dan.emsphone.com) Date: Fri, 18 Feb 2000 11:56:56 -0600 From: Dan Nelson To: rene@xs4all.nl Cc: questions@FreeBSD.ORG Subject: Re: echo and ANSI sequences? Message-ID: <20000218115656.A43114@dan.emsphone.com> References: <2605.000218@xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2605.000218@xs4all.nl>; from "rene@xs4all.nl" on Fri Feb 18 14:31:19 GMT 2000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Feb 18), rene@xs4all.nl said: > Hello questions, > > Echo, however, doesn't wanna play. I suspect the parsing of \e > doesnt become a 1-byte ESC-character :(( Correct. echo simply echos the characters exactly as written. If you want to send an ESC, either embed a raw ESC in the script, or use the printf command, like printf "\033[0m]". -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message