From owner-freebsd-questions Mon Apr 17 10:22:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from horst.bfd.com (horst.bfd.com [12.9.219.10]) by hub.freebsd.org (Postfix) with ESMTP id 5C2AD37B8E6 for ; Mon, 17 Apr 2000 10:22:37 -0700 (PDT) (envelope-from ejs@bfd.com) Received: from HARLIE.bfd.com (bastion.bfd.com [12.9.219.14]) by horst.bfd.com (8.10.0/8.10.0) with ESMTP id e3HHMTv95182; Mon, 17 Apr 2000 10:22:29 -0700 (PDT) Date: Mon, 17 Apr 2000 10:22:29 -0700 (PDT) From: "Eric J. Schwertfeger" To: Ryan Thompson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: bash line wrapping with ANSI colours In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 17 Apr 2000, Ryan Thompson wrote: > I've recently begun mucking around with my bash prompts lately, and, due > to the use of quite a lot of colour, PS1 has become quite long in > characters (though, when displayed, is only about 15 columns, plus the > path). put a \[ before and after the ANSI codes. Anything between them will not get used to determine the length of the prompt, for word-wrapping purposes. > Has this been documented before? I couldn't find anything in the bash > manpage or the mailing lists like this. It smells like a bug, but has > probably been around far too long to be called anything but a feature :-) Yes, but I can't find my bookmark. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message