Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 23 Apr 2004 08:43:55 -0400 From: Ashok Vadekar To: cygwin AT cygwin DOT com Subject: Re: Line breaks in bash Message-ID: <20040423124355.GA29327@certicom.com> Reply-To: avadekar AT certicom DOT com References: <20040423003718 DOT 93970 DOT qmail AT web21205 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 In-Reply-To: <20040423003718.93970.qmail@web21205.mail.yahoo.com> User-Agent: Mutt/1.4i Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id i3NCpQZo028753 I get the behaviour even if I comment out all the complex PS1 definitions in /etc/profile. To see it, open a bash (windows console, I don't know about rxvt) and resize it to be larger than the 80x25 (mode.com con lines=50 cols=120). Then type away (at a prompt) and see that the text will wrap at ~80 characters. Now, export COLUMNS=120. Same problem. Now, launch another bash from this console, and resize it to 120 wide. Finally, it does the right thing. So, it seems that COLUMNS needs to match the width of the screen, AND something else that only happens (by default anyways) when a new bash is started. Maybe someone else knows what that might be? On Thu, Apr 22, 2004 at 05:37:18PM -0700, AJ Reins wrote: > --- Andrew DeFaria wrote: > > When I type a long line in the bash shell it seems to get confused when > > it passes the first 80 character barrier and does a newline. Below is an > > example. > > > > C09-272-A:# why is it in bash that when I get close to typing 80 > > characters bash > > does som > > ething like this? > > > > Now set my prompt to the hostname as > > "\[\e]0;\w\a\e[01;33mC09-272-A:\e[0m". Could this be causing the problem? > > Yes. You have a \[ to indicate non-printing characters without the closing \]. > > > -- > > I don't suffer from insanity. I enjoy every minute of it. > Me too! (sorry about that! (acutally I'm not, but lets not quibble over tribbles!)) > > __________________________________ > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25¢ > http://photos.yahoo.com/ph/print_splash > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/